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