aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
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) {
return;
}
- struct sway_container *parent = view_unmap(view);
- arrange_and_commit(parent);
+ view_unmap(view);
wl_list_remove(&xwayland_view->commit.link);
view->surface = NULL;
@@ -297,9 +296,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
struct sway_view *view = &xwayland_view->view;
if (view->surface) {
- struct sway_container *parent = view_unmap(view);
- arrange_and_commit(parent);
-
+ view_unmap(view);
wl_list_remove(&xwayland_view->commit.link);
view->surface = NULL;
}