From 360e63b8a73836b85b44980ce7e0f77348d43df3 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 12 May 2018 19:33:38 +0100 Subject: Don't destroy view child on xdg-popup unmap --- sway/desktop/xwayland.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sway/desktop/xwayland.c') 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) { static void unmanaged_handle_destroy(struct wl_listener *listener, void *data) { struct sway_xwayland_unmanaged *surface = wl_container_of(listener, surface, destroy); - struct wlr_xwayland_surface *xsurface = surface->wlr_xwayland_surface; - if (xsurface->mapped) { - unmanaged_handle_unmap(&surface->unmap, xsurface); - } wl_list_remove(&surface->map.link); wl_list_remove(&surface->unmap.link); wl_list_remove(&surface->destroy.link); -- cgit v1.2.3