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

Backends: SDL3: Fix macOS mouse position incorrect for fullscreen apps #7919

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MattGuerrette
Copy link
Contributor

This commit fixes an issue with macOS on devices with a notch. SDL3 no longer provides a client area that encompasses the notch, so any reporting of the mouse location must factor this in for fullscreen SDL3 apps on macOS. SDL3 developers suggested using SDL_GetMouseState() to retrieve the correct location until they can find a solution for rendering into the notch area.

For more discussion about this issue see the following thread:
libsdl-org/SDL#10441

This commit fixes an issue with macOS on devices with a notch. SDL3
no longer provides a client area that encompasses the notch, so any
reporting of the mouse location must factor this in for fullscreen
SDL3 apps on macOS. SDL3 developers suggested using SDL_GetMouseState()
to retrieve the correct location until they can find a solution for
rendering into the notch area.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants