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

Add hint to disable mouse warping when calling SDL_SetWindowFullscreen #11577

Open
edo9300 opened this issue Dec 3, 2024 · 0 comments
Open

Comments

@edo9300
Copy link
Contributor

edo9300 commented Dec 3, 2024

Currently, both in sdl2 and sdl3, when the window is made borderless fullscreen, sdl will warp the mouse pointer to keep it relative to the window 0,0 coordinates. This behaviour really seems a vestigial leftover from when exclusive fullscreen was common with associated resolution change, but now it will just make the mouse jump around the window when it's made fullscreen.
It would be nice to have a hint to disable this behaviour (even nicer if for both sdl versions).
On sdl3 it could even make more sense to have this default off and make the hint enable the behaviour, as i don't really think it has many uses nowadays (especially with multi monitor setups, where you coudl even end up having the cursor jump across monitors), and also will streamline the behaviour with the wayland/xwayland backends after this commit b1e01b9

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