From: garbeam@gmail.com Date: Mon, 8 Aug 2011 16:55:06 +0000 (+0000) Subject: applied Connors and Valentins patch to improve the unmapnotify handling of broken... X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=dec4850d0586f34f0dc69ed5285afefeefef90ae applied Connors and Valentins patch to improve the unmapnotify handling of broken clients --- diff --git a/dwm.c b/dwm.c index db0fdfb..6909969 100644 --- a/dwm.c +++ b/dwm.c @@ -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