-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Fix cursor warping unnecessarily #5895
Conversation
I'll wait for the reporters |
With this change, I can no longer reproduce the problem described in #5774. |
doesn't make sense though... if it's not locked, it means it's confined. So... warp when it's confined? That's what we are trying to battle though? Maybe the flag is set wrong? |
The warp in activate() might be redundant (?). This behaviour is rather strange actually: Minecraft (wayland compatible GLFW)
Minecraft (XWayland)
.NET XWayland program that grabs mouse
|
I tested this patch in Blender and StarCitizen and it has fixed the issues from #5881. |
modified: src/protocols/PointerConstraints.cpp
bd36739
to
994ea75
Compare
I've looked at the history of the old restraint impl and it seems like these warps are simply a remnant from #4889. The warp in deactivate() doesn't end up ever doing anything from my testing. The warp in activate() only seems to introduce issues and I couldn't find the reason why it was added. Everything seems to work on the surface though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, makes sense.
can someone verify the new patch works tho? |
With the new patch, the issue is still not reproducible. I can't say anything about the crashes/freezes mentioned in #5774 (comment), since I haven't encountered them. |
cool, merging then. Thanks! |
Describe your PR, what does it fix/add?
Fixes #5881 and fixes #5774
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Can't reproduce any of the other issues mentioned in #5774 with or without the change made in 2e76376 so it might reintroduce those issues. None from my testing in Minecraft (xwayland and pseudo-wayland with system GLFW), Blender and some other steam games.
Is it ready for merging, or does it need work?
Ready.