ydotool
ydotool copied to clipboard
[KDE] [(x)Wayland] [ArchLinux] [MultiMonitor] Mouse pointer always moves to 0,0 only when using Absolute positioning.
Steps to reproduce:
- Compile latest ydotool from source
-
sudo ydotoold
-
sudo ydotool mousemove --absolute -x 300 -y 300
Same behaviour here on KDE neon 5.27. Irrespective of values given to -x
or -y
, the cursor always moves to top left. Any workarounds to fix this?
I've got the same issue, but the behaviour is different across the machines I tested ydotool on. On one of my laptops the absolute mouse placement works correctly, while on others it doesn't. I suspect that ydotool somehow can be unaware of screen dimensions in certain cases.
Actually ydotool never aware of the current screen dimension. It's now a workaround for absolute positioning by moving mouse by a unlikely to happen negative value, thus result in the mouse to be at (0,0), then move by the given absolute value.
One possible solution is that ydotool creates a virtual absolute pointing device, but it still can't handle multiple displays automatically in this way.