From 981e11ac363e79419d08c158ceb0d257ee87a69b Mon Sep 17 00:00:00 2001 From: sabetts Date: Sat, 2 Jun 2001 10:12:52 +0000 Subject: * src/manage.c (hide_window): ignore unmap_notify events when unmapping the window. * src/list.c (add_to_window_list): use WIN_EVENTS in XSelectInput. * src/data.h (struct rp_window): remove iconizing field. remove code using iconizing. (WIN_EVENTS): new define --- src/manage.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/manage.c') 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 -- cgit v1.2.3