X11: Use getCurrentWindow() instead XGetInputFocus()

This seems to work better in Qt apps.