mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
view: add destroy signal
This commit is contained in:
parent
614c008bea
commit
0657a1d767
2 changed files with 3 additions and 0 deletions
|
|
@ -289,6 +289,7 @@ struct view {
|
|||
struct wl_signal minimized;
|
||||
struct wl_signal fullscreened;
|
||||
struct wl_signal activated; /* bool *activated */
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2511,6 +2511,7 @@ view_init(struct view *view)
|
|||
wl_signal_init(&view->events.minimized);
|
||||
wl_signal_init(&view->events.fullscreened);
|
||||
wl_signal_init(&view->events.activated);
|
||||
wl_signal_init(&view->events.destroy);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -2519,6 +2520,7 @@ view_destroy(struct view *view)
|
|||
assert(view);
|
||||
struct server *server = view->server;
|
||||
|
||||
wl_signal_emit_mutable(&view->events.destroy, NULL);
|
||||
snap_constraints_invalidate(view);
|
||||
|
||||
if (view->mappable.connected) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue