X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/83aa110c6fabbf5f5a14b698a6ca22072cb80629..f2190c8fc21a7d2408b3025ad92c853c035351cc:/event.c?ds=inline diff --git a/event.c b/event.c index 949812f..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,