xwm: only emit unmap notify once

This commit is contained in:
Tony Crisci 2017-10-25 07:12:25 -04:00
parent e5ee01254b
commit 1be650d78a
1 changed files with 4 additions and 2 deletions

View File

@ -578,9 +578,11 @@ static void handle_unmap_notify(struct wlr_xwm *xwm,
} }
xsurface->surface = NULL; xsurface->surface = NULL;
if (xsurface->mapped) {
xsurface->mapped = false; xsurface->mapped = false;
wl_signal_emit(&xsurface->events.unmap_notify, xsurface); wl_signal_emit(&xsurface->events.unmap_notify, xsurface);
} }
}
static void handle_property_notify(struct wlr_xwm *xwm, static void handle_property_notify(struct wlr_xwm *xwm,
xcb_property_notify_event_t *ev) { xcb_property_notify_event_t *ev) {