diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-06-19 09:04:21 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-06-19 09:04:21 +0200 |
| commit | 51a94a2f147e490101f33b276c83389e48307425 (patch) | |
| tree | 1ab6353de634a0bde96b6d7ca08d5c6f514e5db8 /event.c | |
| parent | applied restack patch of anydot, with slight changes (diff) | |
| download | dwm-51a94a2f147e490101f33b276c83389e48307425.tar.gz dwm-51a94a2f147e490101f33b276c83389e48307425.zip | |
removed crappy createnotify handler
Diffstat (limited to '')
| -rw-r--r-- | event.c | 14 |
1 files changed, 0 insertions, 14 deletions
| @@ -225,19 +225,6 @@ configurenotify(XEvent *e) { | |||
| 225 | } | 225 | } |
| 226 | 226 | ||
| 227 | static void | 227 | static void |
| 228 | createnotify(XEvent *e) { | ||
| 229 | static XWindowAttributes wa; | ||
| 230 | XCreateWindowEvent *ev = &e->xcreatewindow; | ||
| 231 | |||
| 232 | if(!XGetWindowAttributes(dpy, ev->window, &wa)) | ||
| 233 | return; | ||
| 234 | if(wa.override_redirect) | ||
| 235 | return; | ||
| 236 | if(!getclient(ev->window) && (wa.map_state == IsViewable)) | ||
| 237 | manage(ev->window, &wa); | ||
| 238 | } | ||
| 239 | |||
| 240 | static void | ||
| 241 | destroynotify(XEvent *e) { | 228 | destroynotify(XEvent *e) { |
| 242 | Client *c; | 229 | Client *c; |
| 243 | XDestroyWindowEvent *ev = &e->xdestroywindow; | 230 | XDestroyWindowEvent *ev = &e->xdestroywindow; |
| @@ -363,7 +350,6 @@ void (*handler[LASTEvent]) (XEvent *) = { | |||
| 363 | [ButtonPress] = buttonpress, | 350 | [ButtonPress] = buttonpress, |
| 364 | [ConfigureRequest] = configurerequest, | 351 | [ConfigureRequest] = configurerequest, |
| 365 | [ConfigureNotify] = configurenotify, | 352 | [ConfigureNotify] = configurenotify, |
| 366 | /* [CreateNotify] = createnotify, */ | ||
| 367 | [DestroyNotify] = destroynotify, | 353 | [DestroyNotify] = destroynotify, |
| 368 | [EnterNotify] = enternotify, | 354 | [EnterNotify] = enternotify, |
| 369 | [LeaveNotify] = leavenotify, | 355 | [LeaveNotify] = leavenotify, |
