removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
This commit is contained in:
parent
0045ad87df
commit
f8181f64e2
5 changed files with 6 additions and 30 deletions
8
event.c
8
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue