diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-01-15 12:04:25 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-01-15 12:04:25 +0100 |
commit | f8181f64e2ba4fca4e85036c48cf90a2151794fc (patch) | |
tree | 7d82e76b3214ca5e09a25ce8e68f1fbf1491c138 /event.c | |
parent | 0045ad87dfb32f35fc17b5b8942049cfe84d623c (diff) | |
download | dwm-f8181f64e2ba4fca4e85036c48cf90a2151794fc.tar.gz |
removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/event.c b/event.c index a9d2fbb..a809511 100644 --- a/event.c +++ b/event.c @@ -235,7 +235,6 @@ enternotify(XEvent *e) { else if(ev->window == root) { issel = True; XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); - drawall(); } } @@ -272,10 +271,8 @@ static void leavenotify(XEvent *e) { XCrossingEvent *ev = &e->xcrossing; - if((ev->window == root) && !ev->same_screen) { + if((ev->window == root) && !ev->same_screen) issel = False; - drawall(); - } } static void @@ -329,7 +326,8 @@ propertynotify(XEvent *e) { } if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { updatetitle(c); - drawclient(c); + if(c == sel) + drawstatus(); } } } |