summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--event.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/event.c b/event.c
index 1da9a6b..ad4e271 100644
--- a/event.c
+++ b/event.c
@@ -225,19 +225,6 @@ configurenotify(XEvent *e) {
225} 225}
226 226
227static void 227static void
228createnotify(XEvent *e) {
229 static XWindowAttributes wa;
230 XCreateWindowEvent *ev = &e->xcreatewindow;
231
232 if(!XGetWindowAttributes(dpy, ev->window, &wa))
233 return;
234 if(wa.override_redirect)
235 return;
236 if(!getclient(ev->window) && (wa.map_state == IsViewable))
237 manage(ev->window, &wa);
238}
239
240static void
241destroynotify(XEvent *e) { 228destroynotify(XEvent *e) {
242 Client *c; 229 Client *c;
243 XDestroyWindowEvent *ev = &e->xdestroywindow; 230 XDestroyWindowEvent *ev = &e->xdestroywindow;
@@ -363,7 +350,6 @@ void (*handler[LASTEvent]) (XEvent *) = {
363 [ButtonPress] = buttonpress, 350 [ButtonPress] = buttonpress,
364 [ConfigureRequest] = configurerequest, 351 [ConfigureRequest] = configurerequest,
365 [ConfigureNotify] = configurenotify, 352 [ConfigureNotify] = configurenotify,
366/* [CreateNotify] = createnotify, */
367 [DestroyNotify] = destroynotify, 353 [DestroyNotify] = destroynotify,
368 [EnterNotify] = enternotify, 354 [EnterNotify] = enternotify,
369 [LeaveNotify] = leavenotify, 355 [LeaveNotify] = leavenotify,