diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 1706d7080..f31163d94 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -630,6 +630,7 @@ static void xwayland_surface_destroy(struct wlr_xwayland_surface *xsurface) { wl_list_remove(&child->parent_link); wl_list_init(&child->parent_link); child->parent = NULL; + wl_signal_emit_mutable(&child->events.set_parent, NULL); } wl_list_remove(&xsurface->unpaired_link);