prevent some unneeded redraws

This commit is contained in:
Sander van Dijk 2006-05-09 19:08:07 +00:00
parent 84e4a54ad1
commit ff9c005c03
1 changed files with 2 additions and 2 deletions

View File

@ -138,9 +138,9 @@ focus_client(Client *c, Bool restack)
if(i > 0 && f->area->mode == Colstack)
arrange_column(f->area, False);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
if(old)
if(old && old != old_in_area && old != c)
draw_client(old);
if(old_in_area != c)
if(old_in_area && old_in_area != c)
draw_client(old_in_area);
draw_client(c);
XSync(dpy, False);