X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;fp=event.c;h=ad4e271e328dbd975c4a43e4fcf93a8cc0289409;hp=1da9a6ba3ffd4d0d2d865135c597022cd0d5dcde;hb=51a94a2f147e490101f33b276c83389e48307425;hpb=c95bf3db9dcbf48428140bca6c2f86129977cc6c 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) { } 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; XDestroyWindowEvent *ev = &e->xdestroywindow; @@ -363,7 +350,6 @@ void (*handler[LASTEvent]) (XEvent *) = { [ButtonPress] = buttonpress, [ConfigureRequest] = configurerequest, [ConfigureNotify] = configurenotify, -/* [CreateNotify] = createnotify, */ [DestroyNotify] = destroynotify, [EnterNotify] = enternotify, [LeaveNotify] = leavenotify,