summaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-03-30 17:43:43 -0400
committerLibravatar emersion <contact@emersion.fr>2018-03-30 17:43:43 -0400
commit139f80b0f03cd772e408604203df81f285ca3f67 (patch)
tree94004c7898769b0d33b0980ce062da0e3564b190 /sway/desktop/xwayland.c
parentRemove debug, add explicit TODO (diff)
downloadsway-139f80b0f03cd772e408604203df81f285ca3f67.tar.gz
sway-139f80b0f03cd772e408604203df81f285ca3f67.tar.zst
sway-139f80b0f03cd772e408604203df81f285ca3f67.zip
Handle map/unmap events in xdg-shell-v6
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 79c675a0..01c993b3 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -127,7 +127,6 @@ static void handle_unmap(struct wl_listener *listener, void *data) {
127} 127}
128 128
129static void handle_map(struct wl_listener *listener, void *data) { 129static void handle_map(struct wl_listener *listener, void *data) {
130 // TODO put the view back into the tree
131 struct sway_xwayland_surface *sway_surface = 130 struct sway_xwayland_surface *sway_surface =
132 wl_container_of(listener, sway_surface, map); 131 wl_container_of(listener, sway_surface, map);
133 struct wlr_xwayland_surface *xsurface = data; 132 struct wlr_xwayland_surface *xsurface = data;
@@ -193,7 +192,6 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
193 sway_view->iface.close = close_view; 192 sway_view->iface.close = close_view;
194 sway_view->wlr_xwayland_surface = xsurface; 193 sway_view->wlr_xwayland_surface = xsurface;
195 sway_view->sway_xwayland_surface = sway_surface; 194 sway_view->sway_xwayland_surface = sway_surface;
196 sway_view->surface = xsurface->surface;
197 sway_surface->view = sway_view; 195 sway_surface->view = sway_view;
198 196
199 wl_list_init(&sway_view->unmanaged_view_link); 197 wl_list_init(&sway_view->unmanaged_view_link);