Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c95bf3d
)
removed crappy createnotify handler
author
Anselm R. Garbe
<arg@suckless.org>
Tue, 19 Jun 2007 07:04:21 +0000
(09:04 +0200)
committer
Anselm R. Garbe
<arg@suckless.org>
Tue, 19 Jun 2007 07:04:21 +0000
(09:04 +0200)
event.c
patch
|
blob
|
history
diff --git
a/event.c
b/event.c
index
1da9a6b
..
ad4e271
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-225,19
+225,6
@@
configurenotify(XEvent *e) {
}
static void
}
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;
destroynotify(XEvent *e) {
Client *c;
XDestroyWindowEvent *ev = &e->xdestroywindow;
@@
-363,7
+350,6
@@
void (*handler[LASTEvent]) (XEvent *) = {
[ButtonPress] = buttonpress,
[ConfigureRequest] = configurerequest,
[ConfigureNotify] = configurenotify,
[ButtonPress] = buttonpress,
[ConfigureRequest] = configurerequest,
[ConfigureNotify] = configurenotify,
-/* [CreateNotify] = createnotify, */
[DestroyNotify] = destroynotify,
[EnterNotify] = enternotify,
[LeaveNotify] = leavenotify,
[DestroyNotify] = destroynotify,
[EnterNotify] = enternotify,
[LeaveNotify] = leavenotify,