aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/xwayland.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 46eaa84c..cad9156d 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -257,11 +257,6 @@ static void handle_map(struct wl_listener *listener, void *data) {
static void handle_destroy(struct wl_listener *listener, void *data) {
struct sway_xwayland_view *xwayland_view =
wl_container_of(listener, xwayland_view, destroy);
- struct sway_view *view = &xwayland_view->view;
- struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
- if (xsurface->mapped) {
- handle_unmap(&xwayland_view->unmap, xsurface);
- }
view_destroy(&xwayland_view->view);
}