jordansissel / xdotool

fake keyboard/mouse input, window management, and more
Other
3.19k stars 317 forks source link

XGetInputFocus returned the focused window of 1. This is likely a bug in the X server. #455

Open ygm521 opened 5 months ago

ygm521 commented 5 months ago

ubuntu18.04
image

FascinatedBox commented 5 months ago

Ignore xdotool: This is not an bug in X. See here:

https://tronche.com/gui/x/xlib/input/XSetInputFocus.html

To summarize the above: Asking for input focus can return three different possibilities: A window that has focus, None (0x0), or PointerRoot (0x1). The latter indicates that the current window is the root window of the screen the mouse is currently on.