Use the last known timestamp when calling xcb_set_input_focus(). (#2332)
Use the last known timestamp when calling xcb_set_input_focus(). (#2332)

In most cases this won't make a difference, but consider the following
scenario:

* Some application acquires input focus on its own (which the window manager
  is not involved in, so it will "always" work).
* Before the FocusIn / FocusOut events are processed by i3, the
  workflow to push X changes is run, resulting in xcb_set_input_focus()
  being called.

Using XCB_CURRENT_TIME, this means i3 will "win" and override the focus,
even though it simply wasn't aware (yet) that focus had already been taken
over by someone else. When processing the FocusIn / FocusOut events, i3
assumes that the focus is already set which results in a broken focus
state as i3 assumes some container has the input focus when it doesn't.

With the new behavior, i3's attempt to set the input focus will fail if
the FocusIn / FocusOut events have not yet processed. Once they are processed,
the focus state will be automatically corrected.

fixes #2322
cornerman/i3,stapelberg/i3,strake/i3,Airblader/i3-original,cornerman/i3,stapelberg/i3,EvilPudding/i3,Airblader/i3,Airblader/i3,Chr1stoph/i3,Matmusia/i3,strake/i3,acrisci/i3,Airblader/i3-original,Chr1stoph/i3,strake/i3,acrisci/i3,Matmusia/i3,strake/i3,Airblader/i3,Airblader/i3-original,avrelaun/i3,shdown/i3,i3/i3,shdown/i3,EvilPudding/i3,Airblader/i3,Matmusia/i3,i3/i3,EvilPudding/i3,avrelaun/i3,shdown/i3,EvilPudding/i3,Chr1stoph/i3,i3/i3,strake/i3,Matmusia/i3,stapelberg/i3,avrelaun/i3,cornerman/i3,avrelaun/i3,stapelberg/i3,acrisci/i3,i3/i3,Airblader/i3-original,Chr1stoph/i3,shdown/i3,cornerman/i3,acrisci/i3,acrisci/i3,Airblader/i3-original