From 0b6d6d738a7436ddfb63c782bddaa7ece1c29b1b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 16 Mar 2008 20:29:30 +0100 Subject: [PATCH] Do nothing it the client already has focus Signed-off-by: Julien Danjou --- client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.c b/client.c index 58f4e6ea..0579def5 100644 --- a/client.c +++ b/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);