[Scummvm-tracker] [ScummVM :: Bugs] #14433: MACOS: mouse cursor appearing / failing to capture when in fullscreen mode
ScummVM :: Bugs
trac at scummvm.org
Sun Feb 25 22:24:17 UTC 2024
#14433: MACOS: mouse cursor appearing / failing to capture when in fullscreen mode
--------------------+-----------------------------
Reporter: almeath | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Port: Mac OS X
Version: | Resolution:
Keywords: | Game:
--------------------+-----------------------------
Comment (by SirBogman):
I made a local build of SDL 2.30.0 that fixes the issue almost completely.
The one exception is that I know of is, if you take a screenshot with
cmd+shift+4, then the system cursor is visible until you move them mouse
(I'm ok with this).
ScummVM is constantly calling SDL_ShowCursor(0), when the mouse moves, to
hide the cursor.
In the implementation of SDL_ShowCursor, if the desired state (visible or
not) matches the state cached in SDL_Mouse::cursor_shown, then nothing is
done. The problem is that the state of SDL_Mouse::cursor_shown can get out
of sync with the actual state of the system cursor visibility. If I remove
the comparison to the cached state and just always update the cursor
visibility, then it works. I'll look into whether I can fix this in a way
that is appropriate for submission to the SDL library.
--
Ticket URL: <https://bugs.scummvm.org/ticket/14433#comment:7>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list