mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-10-30 15:40:45 +00:00
xwm: only emit unmap notify once
This commit is contained in:
parent
e5ee01254b
commit
1be650d78a
@ -578,8 +578,10 @@ static void handle_unmap_notify(struct wlr_xwm *xwm,
|
||||
}
|
||||
xsurface->surface = NULL;
|
||||
|
||||
xsurface->mapped = false;
|
||||
wl_signal_emit(&xsurface->events.unmap_notify, xsurface);
|
||||
if (xsurface->mapped) {
|
||||
xsurface->mapped = false;
|
||||
wl_signal_emit(&xsurface->events.unmap_notify, xsurface);
|
||||
}
|
||||
}
|
||||
|
||||
static void handle_property_notify(struct wlr_xwm *xwm,
|
||||
|
Loading…
Reference in New Issue
Block a user