Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
fixed _DWM_CONFIG persistation, fixed the client disapperance bug during restarts
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
4bedf18
..
b8a16a7
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-4,6
+4,7
@@
#include <stdlib.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
#include <stdlib.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
+#include <X11/Xutil.h>
/* static */
/* static */
@@
-226,7
+227,7
@@
destroynotify(XEvent *e) {
XDestroyWindowEvent *ev = &e->xdestroywindow;
if((c = getclient(ev->window)))
XDestroyWindowEvent *ev = &e->xdestroywindow;
if((c = getclient(ev->window)))
- unmanage(c);
+ unmanage(c
, WithdrawnState
);
}
static void
}
static void
@@
-338,7
+339,7
@@
unmapnotify(XEvent *e) {
if((c = getclient(ev->window)) && (ev->event == root)) {
if(ev->send_event || c->unmapped-- == 0)
if((c = getclient(ev->window)) && (ev->event == root)) {
if(ev->send_event || c->unmapped-- == 0)
- unmanage(c);
+ unmanage(c
, WithdrawnState
);
}
}
}
}