I am currently having a very simply problem, that I cannot for the life of me figure out. The --window function of xdotool does not work. I should be able to open two terminal windows, get the windowID of one of them and run xdotool key --window "WindowID" x But nothing happens. If I type in a non-existing windowID, I get a BadWindowID error, so it finds the window. If I type in the windowID of the same terminal window I type the command into, nothing happens. I can also do a simple `sleep 5; xdotool key x` and switch to another terminal window, which correctly results in a keystroke in the newly selected terminal window, but that's not the point. My only (functional) workaround currently is to switch between windows, execute the keystroke and switch back, thus circumventing the --window function, but it's making my eyes bleed. tmp=$(xdotool getactivewindow); xdotool windowactivate --sync $(xdotool search --name "WINDOWNAME") key x; xdotool windowactivate $tmp I have tried running it as a bash script, as root, I've tried using getting the windowID as a variable in the same line and getting it in separate script. My only other idea now is to update my distribution assuming there is some fault in my window manager. I am running Mint 20, Xfce 64, x11, xfce4-terminal