aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-13 08:47:17 -0400
committerLibravatar GitHub <noreply@github.com>2018-04-13 08:47:17 -0400
commita5735c08c7c3d99c452ea87a591afef0f4c2f5d2 (patch)
treea0506600c7387e83c0aab93d904d8abc97df2623
parentMerge pull request #1803 from ggreer/swaylock-secure-password (diff)
parentDo not call the map handler when an xwayland surface is created (diff)
downloadsway-a5735c08c7c3d99c452ea87a591afef0f4c2f5d2.tar.gz
sway-a5735c08c7c3d99c452ea87a591afef0f4c2f5d2.tar.zst
sway-a5735c08c7c3d99c452ea87a591afef0f4c2f5d2.zip
Merge pull request #1808 from emersion/xwayland-unmapped-on-create
Do not call the map handler when an xwayland surface is created
-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}