From 51a94a2f147e490101f33b276c83389e48307425 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 19 Jun 2007 09:04:21 +0200 Subject: removed crappy createnotify handler --- event.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/event.c b/event.c index 1da9a6b..ad4e271 100644 --- a/event.c +++ b/event.c @@ -224,19 +224,6 @@ configurenotify(XEvent *e) { } } -static void -createnotify(XEvent *e) { - static XWindowAttributes wa; - XCreateWindowEvent *ev = &e->xcreatewindow; - - if(!XGetWindowAttributes(dpy, ev->window, &wa)) - return; - if(wa.override_redirect) - return; - if(!getclient(ev->window) && (wa.map_state == IsViewable)) - manage(ev->window, &wa); -} - static void destroynotify(XEvent *e) { Client *c; @@ -363,7 +350,6 @@ void (*handler[LASTEvent]) (XEvent *) = { [ButtonPress] = buttonpress, [ConfigureRequest] = configurerequest, [ConfigureNotify] = configurenotify, -/* [CreateNotify] = createnotify, */ [DestroyNotify] = destroynotify, [EnterNotify] = enternotify, [LeaveNotify] = leavenotify, -- cgit v1.2.3-70-g09d2