diff options
author | garbeam@gmail.com | 2011-08-08 16:55:06 +0000 |
---|---|---|
committer | garbeam@gmail.com | 2011-08-08 16:55:06 +0000 |
commit | b5e0059366da0a7d579b3f10bef8058f8bf3227e (patch) | |
tree | b7040124609c88bd4630a3ec1ce2a4c2409f192a | |
parent | 7ba1304da0215dc0c7f871696a44263eb39eaf22 (diff) | |
download | aur-b5e0059366da0a7d579b3f10bef8058f8bf3227e.tar.gz |
applied Connors and Valentins patch to improve the unmapnotify handling of broken clients
-rw-r--r-- | dwm.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |