Wayland apps do not update the mouse position
Author: Anonymous941Created Aug 29, 2024Updated May 15, 2026
A workaround is to allow using xorg utilities, as
Never mind, it's the other way around. Native Wayland apps do not update the mouse position, only XWayland doesxdotool getmouselocation shows the correct location, but only when it is over an XWayland (not native Wayland) app
Source: asweigart/pyautogui