summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/manage.c b/src/manage.c
index b379069..11fbfd9 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -530,10 +530,11 @@ withdraw_window (rp_window *win)
remove_from_list (win);
append_to_list (win, rp_unmapped_window_sentinel);
+ ignore_badwindow++;
+
XRemoveFromSaveSet (dpy, win->w);
set_state (win, WithdrawnState);
-
- ignore_badwindow++;
XSync (dpy, False);
+
ignore_badwindow--;
}