mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-05 03:01:33 -04:00
xwayland: emit set_parent signal when parent is destroyed
When a xwayland surface is destroyed, its children's parent pointer is set to NULL, but the set_parent signal was not emitted.
This commit is contained in:
parent
bd99e8c2bd
commit
a94cd29eb1
1 changed files with 1 additions and 0 deletions
|
|
@ -630,6 +630,7 @@ static void xwayland_surface_destroy(struct wlr_xwayland_surface *xsurface) {
|
||||||
wl_list_remove(&child->parent_link);
|
wl_list_remove(&child->parent_link);
|
||||||
wl_list_init(&child->parent_link);
|
wl_list_init(&child->parent_link);
|
||||||
child->parent = NULL;
|
child->parent = NULL;
|
||||||
|
wl_signal_emit_mutable(&child->events.set_parent, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_list_remove(&xsurface->unpaired_link);
|
wl_list_remove(&xsurface->unpaired_link);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue