Browse Source

removed crappy createnotify handler

config
Anselm R. Garbe 17 years ago
parent
commit
51a94a2f14
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      event.c

+ 0
- 14
event.c View File

@ -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 static void
destroynotify(XEvent *e) { destroynotify(XEvent *e) {
Client *c; Client *c;
@ -363,7 +350,6 @@ void (*handler[LASTEvent]) (XEvent *) = {
[ButtonPress] = buttonpress, [ButtonPress] = buttonpress,
[ConfigureRequest] = configurerequest, [ConfigureRequest] = configurerequest,
[ConfigureNotify] = configurenotify, [ConfigureNotify] = configurenotify,
/* [CreateNotify] = createnotify, */
[DestroyNotify] = destroynotify, [DestroyNotify] = destroynotify,
[EnterNotify] = enternotify, [EnterNotify] = enternotify,
[LeaveNotify] = leavenotify, [LeaveNotify] = leavenotify,


Loading…
Cancel
Save