summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-15 12:04:25 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-15 12:04:25 +0100
commitf8181f64e2ba4fca4e85036c48cf90a2151794fc (patch)
tree7d82e76b3214ca5e09a25ce8e68f1fbf1491c138 /event.c
parentimplemented new color scheme accordingly to Sanders proposal (diff)
downloaddwm-f8181f64e2ba4fca4e85036c48cf90a2151794fc.tar.gz
dwm-f8181f64e2ba4fca4e85036c48cf90a2151794fc.zip
removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
Diffstat (limited to '')
-rw-r--r--event.c8
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) {
235 else if(ev->window == root) { 235 else if(ev->window == root) {
236 issel = True; 236 issel = True;
237 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 237 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
238 drawall();
239 } 238 }
240} 239}
241 240
@@ -272,10 +271,8 @@ static void
272leavenotify(XEvent *e) { 271leavenotify(XEvent *e) {
273 XCrossingEvent *ev = &e->xcrossing; 272 XCrossingEvent *ev = &e->xcrossing;
274 273
275 if((ev->window == root) && !ev->same_screen) { 274 if((ev->window == root) && !ev->same_screen)
276 issel = False; 275 issel = False;
277 drawall();
278 }
279} 276}
280 277
281static void 278static void
@@ -329,7 +326,8 @@ propertynotify(XEvent *e) {
329 } 326 }
330 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { 327 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
331 updatetitle(c); 328 updatetitle(c);
332 drawclient(c); 329 if(c == sel)
330 drawstatus();
333 } 331 }
334 } 332 }
335} 333}