i3-input: Proper position in non-standard cases. (#2313)
i3-input: Proper position in non-standard cases. (#2313)

This commit fixes two issues:
* We detect the EWMH support window from the root window. If this window
  currently has the input focus, we ignore this. We do this because this
  window is not a window the user is aware of and positioning relative to
  it makes no sense.
* We also detect whether the current input focus is in an i3-frame window.
  This can happen, e.g., when selecting a parent (split) container. Since
  frame windows are direct children of the root window, we must not
  translate its coordinates or we get weird results and i3-input ends up
  off-screen (see #2312). For all other windows, including those without
  any WM_CLASS, we proceed as before.

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