Mercurial > dwm-meillo
diff event.c @ 690:399f08187c27
removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Mon, 15 Jan 2007 12:04:25 +0100 |
parents | a76799907854 |
children | 8d3720e06c89 |
line wrap: on
line diff
--- a/event.c Sun Jan 14 22:37:34 2007 +0100 +++ b/event.c Mon Jan 15 12:04:25 2007 +0100 @@ -235,7 +235,6 @@ else if(ev->window == root) { issel = True; XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); - drawall(); } } @@ -272,10 +271,8 @@ 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 @@ } if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { updatetitle(c); - drawclient(c); + if(c == sel) + drawstatus(); } } }