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, 4 insertions, 1 deletions
diff --git a/src/manage.c b/src/manage.c
index e611b1f..8a7effc 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -500,9 +500,12 @@ hide_window (rp_window *win)
{
if (win == NULL) return;
+ /* Ignore the unmap_notify event. */
+ XSelectInput(dpy, win->w,
+ WIN_EVENTS&~(StructureNotifyMask|EnterWindowMask));
XUnmapWindow (dpy, win->w);
+ XSelectInput (dpy, win->w, WIN_EVENTS);
set_state (win, IconicState);
- win->iconizing++;
}
void