Don't destroy view child on xdg-popup unmap

This commit is contained in:
emersion 2018-05-12 19:33:38 +01:00
parent b1c33ecc25
commit 360e63b8a7
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 0 additions and 13 deletions

View file

@ -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);