summaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-04-13 14:43:41 +0200
committerLibravatar emersion <contact@emersion.fr>2018-04-13 14:43:41 +0200
commitbdaf420ead7ae263ce35efec0c7bd79143664dbc (patch)
treea0506600c7387e83c0aab93d904d8abc97df2623 /sway/desktop/xwayland.c
parentMerge pull request #1803 from ggreer/swaylock-secure-password (diff)
downloadsway-bdaf420ead7ae263ce35efec0c7bd79143664dbc.tar.gz
sway-bdaf420ead7ae263ce35efec0c7bd79143664dbc.tar.zst
sway-bdaf420ead7ae263ce35efec0c7bd79143664dbc.zip
Do not call the map handler when an xwayland surface is created
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 413dbf8b..69166af0 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -113,8 +113,6 @@ static struct sway_xwayland_unmanaged *create_unmanaged(
113 wl_signal_add(&xsurface->events.destroy, &surface->destroy); 113 wl_signal_add(&xsurface->events.destroy, &surface->destroy);
114 surface->destroy.notify = unmanaged_handle_destroy; 114 surface->destroy.notify = unmanaged_handle_destroy;
115 115
116 unmanaged_handle_map(&surface->map, xsurface);
117
118 return surface; 116 return surface;
119} 117}
120 118
@@ -305,6 +303,4 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
305 303
306 wl_signal_add(&xsurface->events.map, &xwayland_view->map); 304 wl_signal_add(&xsurface->events.map, &xwayland_view->map);
307 xwayland_view->map.notify = handle_map; 305 xwayland_view->map.notify = handle_map;
308
309 handle_map(&xwayland_view->map, xsurface);
310} 306}