aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-26 13:15:45 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-26 13:15:45 +1000
commit7a922c65aab27c5f4282cf15de52d240e5ac8052 (patch)
treebea2a3dee07631b1da05428b29ec5d1e4c47d871 /sway/desktop/xwayland.c
parentRename progress_queue to transaction_progress_queue (diff)
downloadsway-7a922c65aab27c5f4282cf15de52d240e5ac8052.tar.gz
sway-7a922c65aab27c5f4282cf15de52d240e5ac8052.tar.zst
sway-7a922c65aab27c5f4282cf15de52d240e5ac8052.zip
Damage output when a fullscreen view unmaps
Also moved the arranging into view_unmap to avoid excessive code duplication.
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 7e78ef32..53fa42cc 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -260,8 +260,7 @@ static void handle_unmap(struct wl_listener *listener, void *data) {
260 return; 260 return;
261 } 261 }
262 262
263 struct sway_container *parent = view_unmap(view); 263 view_unmap(view);
264 arrange_and_commit(parent);
265 264
266 wl_list_remove(&xwayland_view->commit.link); 265 wl_list_remove(&xwayland_view->commit.link);
267 view->surface = NULL; 266 view->surface = NULL;
@@ -297,9 +296,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
297 struct sway_view *view = &xwayland_view->view; 296 struct sway_view *view = &xwayland_view->view;
298 297
299 if (view->surface) { 298 if (view->surface) {
300 struct sway_container *parent = view_unmap(view); 299 view_unmap(view);
301 arrange_and_commit(parent);
302
303 wl_list_remove(&xwayland_view->commit.link); 300 wl_list_remove(&xwayland_view->commit.link);
304 view->surface = NULL; 301 view->surface = NULL;
305 } 302 }