Refresh focus on FocusIn events
commitbf72cf71eac834a46ed4d6e1755d7fd1ae57c104
authorUli Schlachter <psychon@znc.in>
Mon, 11 Feb 2013 15:19:28 +0000 (11 16:19 +0100)
committerUli Schlachter <psychon@znc.in>
Mon, 11 Feb 2013 15:19:28 +0000 (11 16:19 +0100)
tree1f20c2698bcc35bd48efdfdf89a7c0ebebc22e71
parente4be0017ff8338aefdfbae10a616c001029f68ca
Refresh focus on FocusIn events

To avoid some oddities, awesome sets the input focus lazily. Instead of
immediately sending everything to the X11 server, awesome just sets a flag "have
to update the focus later".

However, this can cause problems. As Stefan noticed, awesome can forget about
focus changes on FocusIn events when such an event comes in while we still have
a pending focus change.

The fix here is to send out the pending focus change before we record the fact
that another client now acquired the input focus.

Reported-By: Stefan Haller <haliner@googlemail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
event.c