diff options
author | sabetts <sabetts> | 2001-06-02 10:12:52 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-06-02 10:12:52 +0000 |
commit | 981e11ac363e79419d08c158ceb0d257ee87a69b (patch) | |
tree | e8a5e649fe5dd3ade4c9a901118a992e82aa45c5 /src/manage.c | |
parent | 2a84949a2adb5e342db8043512c3866f2e396e5b (diff) | |
download | ratpoison-981e11ac363e79419d08c158ceb0d257ee87a69b.zip |
* 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
Diffstat (limited to 'src/manage.c')
-rw-r--r-- | src/manage.c | 5 |
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 |