From c0d7f9d915cb621d162efc03cf76388c0a16c2e4 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 29 Oct 2018 17:13:23 +0000 Subject: [PATCH] Add damage when restacking windows Interesting this problem only surface when using GTK applications on KDE. Maybe on other WMs there are some other events after window restacking that triggers repaint of the window. Fixes #28 Signed-off-by: Yuxuan Shui --- src/compton.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compton.c b/src/compton.c index d74ac9d..c37d11c 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2142,6 +2142,9 @@ restack_win(session_t *ps, win *w, Window new_above) { w->next = *prev; *prev = w; + // add damage for this window + add_damage_from_win(ps, w); + #ifdef DEBUG_RESTACK { const char *desc;