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

Fix cursor grabbing #318

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Fix cursor grabbing #318

merged 2 commits into from
Mar 5, 2024

Conversation

terrarier2111
Copy link
Member

@terrarier2111 terrarier2111 commented Mar 5, 2024

On wayland the cursor wouldn't be grabbed properly due to a winit/wayland compositor bug see rust-windowing/winit#3566 this was fixed by not setting the grab mode every frame but just setting it once a change in game state occurred. Furthermore we now prefer the Locked grab mode when available as that's a better representation of what we are actually trying to do.
Fixes: #316 #265 (although already fixed through a quick and dirty fix by @cooltexture1)

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

Successfully merging this pull request may close these issues.

Wayland cursor locking buggy
1 participant