Ignore re-focusing the focused client
authorUli Schlachter <psychon@znc.in>
Fri, 6 Jul 2012 11:37:58 +0000 (13:37 +0200)
committerUli Schlachter <psychon@znc.in>
Fri, 6 Jul 2012 11:37:58 +0000 (13:37 +0200)
commit29b09cf7da401f13335eb8f8ebb128c80454ecdd
treeeed68adead119c4b8cca90af590ad6174b58f5e7
parentfc76521edb011c30b33f9174e762e561f94f1fda
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>
objects/client.c