[hackers] [dwm] removed crappy createnotify handler

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue Jun 19 11:40:24 2007

changeset: 919:0ed962cd6b87
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Tue Jun 19 09:04:21 2007 +0200
summary: removed crappy createnotify handler

diff -r 7c556b28f1f6 -r 0ed962cd6b87 event.c
--- a/event.c Wed Jun 06 11:43:14 2007 +0200
+++ b/event.c Tue Jun 19 09:04:21 2007 +0200
@@ -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,
Received on Tue Jun 19 2007 - 11:40:24 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:20 UTC