aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wayland.c b/wayland.c
index 1d258213..1ffd62a6 100644
--- a/wayland.c
+++ b/wayland.c
@@ -2177,8 +2177,6 @@ wayl_win_destroy(struct wl_window *win)
struct terminal *term = win->term;
- render_wait_for_preapply_damage(term);
-
if (win->csd.move_timeout_fd != -1)
close(win->csd.move_timeout_fd);
@@ -2236,6 +2234,8 @@ wayl_win_destroy(struct wl_window *win)
tll_remove(win->urls, it);
}
+ render_wait_for_preapply_damage(term);
+
csd_destroy(win);
wayl_win_subsurface_destroy(&win->search);
wayl_win_subsurface_destroy(&win->scrollback_indicator);