From d427ffe4d2e6516ca42603c97f62d2085f228346 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 11 Jan 2008 15:32:34 +0100 Subject: [PATCH] invalidate only if we focus a new client --- client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client.c b/client.c index a809ccbfb..0bacce83a 100644 --- a/client.c +++ b/client.c @@ -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)