diff options
| author | garbeam@gmail.com <unknown> | 2011-08-08 16:55:06 +0000 |
|---|---|---|
| committer | garbeam@gmail.com <unknown> | 2011-08-08 16:55:06 +0000 |
| commit | dec4850d0586f34f0dc69ed5285afefeefef90ae (patch) | |
| tree | 9bda8684ba94531e3e4091e36275caac6a4895af /dwm.c | |
| parent | applied Peter Hartlichs nice interim Xinerama and map fix patches, for debugg... (diff) | |
| download | dwm-dec4850d0586f34f0dc69ed5285afefeefef90ae.tar.gz dwm-dec4850d0586f34f0dc69ed5285afefeefef90ae.zip | |
applied Connors and Valentins patch to improve the unmapnotify handling of broken clients
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1761,8 +1761,12 @@ unmapnotify(XEvent *e) { | |||
| 1761 | Client *c; | 1761 | Client *c; |
| 1762 | XUnmapEvent *ev = &e->xunmap; | 1762 | XUnmapEvent *ev = &e->xunmap; |
| 1763 | 1763 | ||
| 1764 | if((c = wintoclient(ev->window))) | 1764 | if((c = wintoclient(ev->window))) { |
| 1765 | unmanage(c, False); | 1765 | if(ev->send_event) |
| 1766 | setclientstate(c, WithdrawnState); | ||
| 1767 | else | ||
| 1768 | unmanage(c, False); | ||
| 1769 | } | ||
| 1766 | } | 1770 | } |
| 1767 | 1771 | ||
| 1768 | void | 1772 | void |
