fififi
This commit is contained in:
parent
8fcc4ff0ae
commit
10d13f01ff
6 changed files with 35 additions and 30 deletions
5
event.c
5
event.c
|
@ -4,6 +4,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/Xutil.h>
|
||||
|
||||
/* static */
|
||||
|
||||
|
@ -226,7 +227,7 @@ destroynotify(XEvent *e) {
|
|||
XDestroyWindowEvent *ev = &e->xdestroywindow;
|
||||
|
||||
if((c = getclient(ev->window)))
|
||||
unmanage(c);
|
||||
unmanage(c, WithdrawnState);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -338,7 +339,7 @@ unmapnotify(XEvent *e) {
|
|||
|
||||
if((c = getclient(ev->window)) && (ev->event == root)) {
|
||||
if(ev->send_event || c->unmapped-- == 0)
|
||||
unmanage(c);
|
||||
unmanage(c, WithdrawnState);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue