You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Fedora 40 spin KDE Plasma. As stated, mouse position reporting breaks if the mouse is not over any of the windows created by Python. To reproduce:
Run sudo idle3 (must have IDLE installed)
Enter the following live code:
import mouse
import time
while True:
print(mouse.get_position())
time.sleep(0.5)
Move the mouse around.
The printed position will only update while the mouse is over the IDLE window.
If you run the same code in Python via the terminal, the mouse position does not update at all, presumably because the terminal window was not created by Python.
The text was updated successfully, but these errors were encountered:
thelabcat
changed the title
On Wayland, get_position reports the last time the cursor was over the Python window
On Wayland, get_position only reports the last time the cursor was over the Python window
Jul 1, 2024
I am using Fedora 40 spin KDE Plasma. As stated, mouse position reporting breaks if the mouse is not over any of the windows created by Python. To reproduce:
sudo idle3
(must have IDLE installed)The printed position will only update while the mouse is over the IDLE window.
If you run the same code in Python via the terminal, the mouse position does not update at all, presumably because the terminal window was not created by Python.
The text was updated successfully, but these errors were encountered: