I have been working with automating some of the user actions using xdotool and java in Ubuntu 18.04.1 LTS x64 Desktop. I am using java robot to move my mouse and xdotool (via Java Process.exec) to move my window and get its location.
I noticed that "xdotool getwindowgeometry" is not giving me accurate Y value for the location. While my java robot does. Suprisingly, "xdotool getmouselocation" has the same value with my java robot. Meaning "xdotool getmouselocation" and "xdotool getwindowgeometry" is not consistent at all.
The applications I used are:
- GEdit - Gnome Terminal
Wherein, GEdit is off by -22 Y axis, where mouse Y location says 27 but this window gives me a Y value of -5.
Gnome Terminal is off by 68 Y axis, where mouse Y location says 27 but this window gives me a Y value of 95.