invalidate only if we focus a new client

This commit is contained in:
Julien Danjou 2008-01-11 15:32:34 +01:00
parent 3ed6ac2bdf
commit d427ffe4d2
1 changed files with 1 additions and 2 deletions

View File

@ -277,10 +277,9 @@ focus(Client *c, Bool selscreen, int screen)
/* save sel in focus history */
focus_add_client(c);
widget_invalidate_cache(screen, WIDGET_CACHE_CLIENTS);
if(globalconf.focus->client)
{
widget_invalidate_cache(screen, WIDGET_CACHE_CLIENTS);
XSetInputFocus(globalconf.display,
globalconf.focus->client->win, RevertToPointerRoot, CurrentTime);
for(c = globalconf.clients; c; c = c->next)