diff options
author | emersion <contact@emersion.fr> | 2019-02-18 13:14:35 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-18 13:14:35 +0100 |
commit | 81ed1efe4f715d884c26c22f76e6a92f75893783 (patch) | |
tree | 3c90c008dcbb930452f780620efef59205237efb /xwayland | |
parent | fd0b625ab96bc3c54ba01a7a610b53b441236728 (diff) |
xwayland, data-device: fix surface state on unmap
This commit makes sure surface->mapped is true when the unmapped event is
emitted. This is necessary because listeners can only damage surfaces that are
mapped. This is similar to the fact that the destroy event is emitted before
any destruction is actually made.
Fixes https://github.com/swaywm/sway/issues/3568
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 9ca2c721..fc99490b 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -793,8 +793,8 @@ static void xwm_map_shell_surface(struct wlr_xwm *xwm, static void xsurface_unmap(struct wlr_xwayland_surface *surface) { if (surface->mapped) { - surface->mapped = false; wlr_signal_emit_safe(&surface->events.unmap, surface); + surface->mapped = false; xwm_set_net_client_list(surface->xwm); } |