[client] Focus even if we think we already have focus

Because sometimes clients steal focus.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-27 21:34:52 +02:00
parent a1df77428d
commit e890297617
1 changed files with 0 additions and 4 deletions

View File

@ -244,10 +244,6 @@ client_focus(client_t *c, int screen)
/* if c is still NULL take next client in the stack */
for(c = globalconf.clients; c && (c->skip || !client_isvisible(c, screen)); c = c->next);
/* if c is already the focused window, then stop */
if(c == globalconf.focus->client)
return false;
/* unfocus current selected client */
if(globalconf.focus->client)
client_unfocus(globalconf.focus->client);