Do nothing it the client already has focus
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
7743e71837
commit
0b6d6d738a
3
client.c
3
client.c
|
@ -193,6 +193,9 @@ client_focus(Client *c, int screen, Bool raise)
|
|||
for(c = globalconf.clients; c && (c->skip || !client_isvisible(c, screen)); c = c->next);
|
||||
}
|
||||
|
||||
if(c == globalconf.focus->client)
|
||||
return;
|
||||
|
||||
/* unfocus current selected client */
|
||||
if(globalconf.focus->client)
|
||||
client_unfocus(globalconf.focus->client);
|
||||
|
|
Loading…
Reference in New Issue