mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
foreign-toplevel: add ext-toplevel-list support
This commit is contained in:
parent
2a825008c6
commit
d6a48ab7a7
6 changed files with 137 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ foreign_toplevel_create(struct view *view)
|
|||
wl_signal_init(&toplevel->events.toplevel_destroy);
|
||||
|
||||
wlr_foreign_toplevel_init(toplevel);
|
||||
ext_foreign_toplevel_init(toplevel);
|
||||
|
||||
return toplevel;
|
||||
}
|
||||
|
|
@ -74,5 +75,6 @@ foreign_toplevel_destroy(struct foreign_toplevel *toplevel)
|
|||
assert(toplevel);
|
||||
wl_signal_emit_mutable(&toplevel->events.toplevel_destroy, NULL);
|
||||
assert(!toplevel->wlr_toplevel.handle);
|
||||
assert(!toplevel->ext_toplevel.handle);
|
||||
free(toplevel);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue