applied Connors and Valentins patch to improve the unmapnotify handling of broken clients

This commit is contained in:
garbeam@gmail.com 2011-08-08 16:55:06 +00:00
parent 0de4197cc5
commit dec4850d05
1 changed files with 6 additions and 2 deletions

6
dwm.c
View File

@ -1761,9 +1761,13 @@ unmapnotify(XEvent *e) {
Client *c;
XUnmapEvent *ev = &e->xunmap;
if((c = wintoclient(ev->window)))
if((c = wintoclient(ev->window))) {
if(ev->send_event)
setclientstate(c, WithdrawnState);
else
unmanage(c, False);
}
}
void
updatebars(void) {