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 <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-10-29 17:13:23 +00:00
parent a312dcb3da
commit c0d7f9d915
1 changed files with 3 additions and 0 deletions

View File

@ -2142,6 +2142,9 @@ restack_win(session_t *ps, win *w, Window new_above) {
w->next = *prev; w->next = *prev;
*prev = w; *prev = w;
// add damage for this window
add_damage_from_win(ps, w);
#ifdef DEBUG_RESTACK #ifdef DEBUG_RESTACK
{ {
const char *desc; const char *desc;