summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/manage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/manage.c b/src/manage.c
index 12699d7..4a024d3 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -675,7 +675,10 @@ hide_window (rp_window *win)
/* An unmapped window is not inside a frame. */
win->frame = NULL;
+ /* Ignore the unmap_notify event. */
+ XSelectInput(dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
XUnmapWindow (dpy, win->w);
+ XSelectInput (dpy, win->w, WIN_EVENTS);
set_state (win, IconicState);
}