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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-07-06 13:37:58 +02:00
parent fc76521edb
commit 29b09cf7da
1 changed files with 1 additions and 1 deletions

View File

@ -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);