-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Disable the "Warp mouse" setting, if it is not available. #345
Comments
So, I looked in docs and found that: |
I think the Wayland scenario could be reported as an upstream bug here, other than that, we should follow what the documentation claims. |
It's not a bug, it's feature (TM) |
See #344 (comment)
That's not the case here IMO. The security argument doesn't hold that well and there's already discussion on improving the situation as linked, it's just that not many people are interested in working on it, from what I can see, as the If you're curious, this is the problematic statement:
(Emphasis mine) This "may", combined with the whole lock/unlock semantics make it a non-ideal API for pointer wrapping, albeit good-enough to not warrant immediate discussion. |
Honeslty, I like to think of this as security feature (even if it isn't). I kind of enjoy when programs is not being able to manipulate my cursor whenever they feel like it, particularly games. (For example, Elder Ring has bad habit of blocking cursor inside it's own window, preventing me from moving cursor to second monitor) |
It kinda is though. The scope of most if not all extensions will always be as small as possible AFAIK. In other words, the current and future pointer manipulation semantics will always be limited to the window or even just its visible surface. |
Control.warp_mouse()
is not always available, for example Web doesn't allow it, and Wayland doesn't support it yet AFAIK (I haven't tested this). So on these platforms, the setting should be disabled and maybe some kind of warning should be given.The text was updated successfully, but these errors were encountered: