From 29b09cf7da401f13335eb8f8ebb128c80454ecdd Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 6 Jul 2012 13:37:58 +0200 Subject: [PATCH] Ignore re-focusing the focused client When something gives the input focus to the client which already has the input focus, bad things can happen. Normally, you'd expect nothing to happen in this case, but X11 is not that simple. When updating the input focus and the focused client has the nofocus hint set, we are actually taking away the focus from this client. Hopefully this fixes FS#973. Signed-off-by: Uli Schlachter --- objects/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/client.c b/objects/client.c index 0df0fa7e1..34c6c04f2 100644 --- a/objects/client.c +++ b/objects/client.c @@ -322,7 +322,7 @@ client_focus(client_t *c) if(!c && globalconf.clients.len && !(c = globalconf.clients.tab[0])) return; - if(!client_maybevisible(c)) + if(!client_maybevisible(c) || c == globalconf.focus.client) return; client_focus_update(c);