Don't change focus in response to FocusIn events
commitfc76521edb011c30b33f9174e762e561f94f1fda
authorUli Schlachter <psychon@znc.in>
Fri, 6 Jul 2012 11:33:27 +0000 (6 13:33 +0200)
committerUli Schlachter <psychon@znc.in>
Fri, 6 Jul 2012 11:33:27 +0000 (6 13:33 +0200)
tree80fdbfa7844eecdfb2fa78db2cbdd78cddb637a2
parent21d821a8dd2c4eb756c31705b92b5b815761608d
Don't change focus in response to FocusIn events

Previously, when we received a FocusIn event, we would update the input focus,
because client_focus_update set globalconf.focus.need_update to true.

However, this is wrong for clients following the globally active focus model,
because in this case its the client which controls which window has the input
focus. It could happen that we thus took away the focus from the client which
just gave itself the focus.

Signed-off-by: Uli Schlachter <psychon@znc.in>
objects/client.c