Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Wayland, get_position only reports the last time the cursor was over the Python window #142

Open
thelabcat opened this issue Jul 1, 2024 · 0 comments

Comments

@thelabcat
Copy link

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:

  1. Run sudo idle3 (must have IDLE installed)
  2. Enter the following live code:
import mouse
import time
while True:
    print(mouse.get_position())
    time.sleep(0.5)
  1. 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.
@thelabcat 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant