diff options
author | emersion <contact@emersion.fr> | 2018-05-12 19:33:38 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-05-12 19:33:38 +0100 |
commit | 360e63b8a73836b85b44980ce7e0f77348d43df3 (patch) | |
tree | 963c5348e2d48ed188e2d4f08ecb01898f1d116d /sway/desktop/xwayland.c | |
parent | Merge pull request #1964 from emersion/wlroots-970 (diff) | |
download | sway-360e63b8a73836b85b44980ce7e0f77348d43df3.tar.gz sway-360e63b8a73836b85b44980ce7e0f77348d43df3.tar.zst sway-360e63b8a73836b85b44980ce7e0f77348d43df3.zip |
Don't destroy view child on xdg-popup unmap
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 8f935760..1d3c857d 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -82,10 +82,6 @@ static void unmanaged_handle_unmap(struct wl_listener *listener, void *data) { | |||
82 | static void unmanaged_handle_destroy(struct wl_listener *listener, void *data) { | 82 | static void unmanaged_handle_destroy(struct wl_listener *listener, void *data) { |
83 | struct sway_xwayland_unmanaged *surface = | 83 | struct sway_xwayland_unmanaged *surface = |
84 | wl_container_of(listener, surface, destroy); | 84 | wl_container_of(listener, surface, destroy); |
85 | struct wlr_xwayland_surface *xsurface = surface->wlr_xwayland_surface; | ||
86 | if (xsurface->mapped) { | ||
87 | unmanaged_handle_unmap(&surface->unmap, xsurface); | ||
88 | } | ||
89 | wl_list_remove(&surface->map.link); | 85 | wl_list_remove(&surface->map.link); |
90 | wl_list_remove(&surface->unmap.link); | 86 | wl_list_remove(&surface->unmap.link); |
91 | wl_list_remove(&surface->destroy.link); | 87 | wl_list_remove(&surface->destroy.link); |