asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.45k stars 1.26k forks source link

Wayland apps do not update the mouse position #881

Open Anonymous941 opened 2 months ago

Anonymous941 commented 2 months ago

A workaround is to allow using xorg utilities, as xdotool getmouselocation shows the correct location, but only when it is over an XWayland (not native Wayland) app Never mind, it's the other way around. Native Wayland apps do not update the mouse position, only XWayland does