tapplied Connors and Valentins patch to improve the unmapnotify handling of broken clients - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit dec4850d0586f34f0dc69ed5285afefeefef90ae
(DIR) parent 0de4197cc5e8e81d94d0faffbaf46abab4d44d1a
(HTM) Author: garbeam@gmail.com <unknown>
Date: Mon, 8 Aug 2011 16:55:06 +0000
applied Connors and Valentins patch to improve the unmapnotify handling of broken clients
Diffstat:
M dwm.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/dwm.c b/dwm.c
t@@ -1761,8 +1761,12 @@ unmapnotify(XEvent *e) {
Client *c;
XUnmapEvent *ev = &e->xunmap;
- if((c = wintoclient(ev->window)))
- unmanage(c, False);
+ if((c = wintoclient(ev->window))) {
+ if(ev->send_event)
+ setclientstate(c, WithdrawnState);
+ else
+ unmanage(c, False);
+ }
}
void