From 3c38b36f041fb60e2724a453fb396f7abee59d0d Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 5 Dec 2020 11:08:49 +0000 Subject: [PATCH] win: move win_update_screen from fill_win into win_process_update_flags fill_win only sets the pending geometry (aka the shadow geometry) of the window, we have to wait for it to propagate to the real geometry before we can update the screen. Related: #554 Signed-off-by: Yuxuan Shui --- src/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win.c b/src/win.c index f12aa336..bc1c02b7 100644 --- a/src/win.c +++ b/src/win.c @@ -471,6 +471,8 @@ void win_process_update_flags(session_t *ps, struct managed_win *w) { // Update window geometry w->g = w->pending_g; + + win_update_screen(ps->xinerama_nscrs, ps->xinerama_scr_regs, w); } if (win_check_flags_all(w, WIN_FLAGS_SIZE_STALE)) { @@ -1556,8 +1558,6 @@ struct win *fill_win(session_t *ps, struct win *w) { free(g); - win_update_screen(ps->xinerama_nscrs, ps->xinerama_scr_regs, new); - // Create Damage for window (if not Input Only) new->damage = x_new_id(ps->c); e = xcb_request_check(