Kaynağa Gözat

removed crappy createnotify handler

Anselm R. Garbe 18 yıl önce
ebeveyn
işleme
51a94a2f14
1 değiştirilmiş dosya ile 0 ekleme ve 14 silme
  1. 0 14
      event.c

+ 0 - 14
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,