applied Connors and Valentins patch to improve the unmapnotify handling of broken clients
This commit is contained in:
parent
0de4197cc5
commit
dec4850d05
6
dwm.c
6
dwm.c
|
@ -1761,9 +1761,13 @@ unmapnotify(XEvent *e) {
|
||||||
Client *c;
|
Client *c;
|
||||||
XUnmapEvent *ev = &e->xunmap;
|
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);
|
unmanage(c, False);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
updatebars(void) {
|
updatebars(void) {
|
||||||
|
|
Loading…
Reference in a new issue