aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-25 07:12:25 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-25 07:12:25 -0400
commit1be650d78a5612164fff9b3b20c5a2a89f13bdf0 (patch)
tree15d869ac1f8ba8cea0dc8a505de6141debe5e3ea
parente5ee01254b442ae2f742a7044c56753fef13de76 (diff)
xwm: only emit unmap notify once
-rw-r--r--xwayland/xwm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 6850f56b..7827295e 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -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,