removed crappy createnotify handler
51a94a2f
1 file(s) · +0 −14
| 225 | 225 | } |
|
| 226 | 226 | ||
| 227 | 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 | 228 | destroynotify(XEvent *e) { |
|
| 242 | 229 | Client *c; |
|
| 243 | 230 | XDestroyWindowEvent *ev = &e->xdestroywindow; |
|
| 363 | 350 | [ButtonPress] = buttonpress, |
|
| 364 | 351 | [ConfigureRequest] = configurerequest, |
|
| 365 | 352 | [ConfigureNotify] = configurenotify, |
|
| 366 | - | /* [CreateNotify] = createnotify, */ |
|
| 367 | 353 | [DestroyNotify] = destroynotify, |
|
| 368 | 354 | [EnterNotify] = enternotify, |
|
| 369 | 355 | [LeaveNotify] = leavenotify, |
|