#include <stdlib.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
+#include <X11/Xutil.h>
/* static */
XDestroyWindowEvent *ev = &e->xdestroywindow;
if((c = getclient(ev->window)))
- unmanage(c);
+ unmanage(c, WithdrawnState);
}
static void
if((c = getclient(ev->window)) && (ev->event == root)) {
if(ev->send_event || c->unmapped-- == 0)
- unmanage(c);
+ unmanage(c, WithdrawnState);
}
}