mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
foreign-toplevel: create generic abstraction
This commit is contained in:
parent
5e1f91c9d1
commit
2a825008c6
15 changed files with 463 additions and 196 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include "common/list.h"
|
||||
#include "foreign-toplevel.h"
|
||||
#include "labwc.h"
|
||||
#include "view.h"
|
||||
#include "view-impl-common.h"
|
||||
|
|
@ -41,8 +42,9 @@ view_impl_map(struct view *view)
|
|||
*/
|
||||
enum property ret = window_rules_get_property(view, "skipTaskbar");
|
||||
if (ret == LAB_PROP_TRUE) {
|
||||
if (view->toplevel.handle) {
|
||||
wlr_foreign_toplevel_handle_v1_destroy(view->toplevel.handle);
|
||||
if (view->foreign_toplevel) {
|
||||
foreign_toplevel_destroy(view->foreign_toplevel);
|
||||
view->foreign_toplevel = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue