diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-15 19:27:32 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-15 19:27:32 +0200 |
| commit | 10d13f01ff764ba0e875adf5d2b83c49aa08d148 (patch) | |
| tree | cad3a1162879cdf53d3a6ac7f97a025d4a65ff40 /event.c | |
| parent | fix of resize (thanks Sander for the hint!) (diff) | |
| download | dwm-10d13f01ff764ba0e875adf5d2b83c49aa08d148.tar.gz dwm-10d13f01ff764ba0e875adf5d2b83c49aa08d148.zip | |
fififi
Diffstat (limited to 'event.c')
| -rw-r--r-- | event.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -4,6 +4,7 @@ | |||
| 4 | #include <stdlib.h> | 4 | #include <stdlib.h> |
| 5 | #include <X11/keysym.h> | 5 | #include <X11/keysym.h> |
| 6 | #include <X11/Xatom.h> | 6 | #include <X11/Xatom.h> |
| 7 | #include <X11/Xutil.h> | ||
| 7 | 8 | ||
| 8 | /* static */ | 9 | /* static */ |
| 9 | 10 | ||
| @@ -226,7 +227,7 @@ destroynotify(XEvent *e) { | |||
| 226 | XDestroyWindowEvent *ev = &e->xdestroywindow; | 227 | XDestroyWindowEvent *ev = &e->xdestroywindow; |
| 227 | 228 | ||
| 228 | if((c = getclient(ev->window))) | 229 | if((c = getclient(ev->window))) |
| 229 | unmanage(c); | 230 | unmanage(c, WithdrawnState); |
| 230 | } | 231 | } |
| 231 | 232 | ||
| 232 | static void | 233 | static void |
| @@ -338,7 +339,7 @@ unmapnotify(XEvent *e) { | |||
| 338 | 339 | ||
| 339 | if((c = getclient(ev->window)) && (ev->event == root)) { | 340 | if((c = getclient(ev->window)) && (ev->event == root)) { |
| 340 | if(ev->send_event || c->unmapped-- == 0) | 341 | if(ev->send_event || c->unmapped-- == 0) |
| 341 | unmanage(c); | 342 | unmanage(c, WithdrawnState); |
| 342 | } | 343 | } |
| 343 | } | 344 | } |
| 344 | 345 | ||
