From bdaf420ead7ae263ce35efec0c7bd79143664dbc Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 13 Apr 2018 14:43:41 +0200 Subject: [PATCH] Do not call the map handler when an xwayland surface is created --- sway/desktop/xwayland.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 413dbf8b2..69166af07 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c @@ -113,8 +113,6 @@ static struct sway_xwayland_unmanaged *create_unmanaged( wl_signal_add(&xsurface->events.destroy, &surface->destroy); surface->destroy.notify = unmanaged_handle_destroy; - unmanaged_handle_map(&surface->map, xsurface); - return surface; } @@ -305,6 +303,4 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) { wl_signal_add(&xsurface->events.map, &xwayland_view->map); xwayland_view->map.notify = handle_map; - - handle_map(&xwayland_view->map, xsurface); }