macOS: cursor confined to a subsection of screen when in fullscreen mode
Type
Game behaviour
Bug description
Was recommended to make an issue
On my macbook, I run two screens, a 4K60 monitor that's scaled to 1440p in System Settings, and the screen of the macbook at default display scaling. Whenever I toggle fullscreen with osu! already being open, nearly every time my cursor will get confined to a small section of the screen. There's no way for me to move my cursor outside of the box except for un-fullscreening with Opt+Return. ~~I'm also running Yabai, if that could somehow have an effect on this~~ (not relevant).
Screenshots or videos
https://github.com/ppy/osu/assets/58487401/556f4a3e-c1e4-44ae-840c-4eb561a75130
(updated video cause hdr flashbang)
Version
2024.130.2-lazer
Logs
As an update, I have isolated and reported the issue to SDL: https://github.com/libsdl-org/SDL/issues/9088. However, I could not come up with a reliable workaround in reasonable time. I've noticed on the reproducer I made that I can get things working by delaying the SDL_SetWindowGrab call until a "size changed" event is triggered, but applying that in o!f only works in borderless mode, not fullscreen. This is worrying me as it suggests that there's more into this issue than the reproducer could cover in the issue thread above. I'll spend more time into this as I see fit, since it's bad for new-coming macOS players.
More importantly, this is not relevant to yabai or tiling window managers, as I can reproduce this issue without any running in the background.