Quake3e
Quake3e copied to clipboard
Weird cursor behavior on M1 + Vulkan in fullscreen
On macOS Vulkan on an M1, freshly compiled master, the cursor doesn't "grab" unless I press and hold the left mouse button.
To fix, I have to start the game, press and hold the left mouse button to move the cursor to Setup, let go, click, and do the same to move through System > Graphics > Full screen -> Off > Accept, then the game goes windowed and everything works fine, and then I turn fullscreen back on and everything works perfectly.
So weird. So I have to use this trick to turn fullscreen off and back on to get the cursor to move normally when I move the mouse.
I feel like this is some limitation on security recently on Macs but don't quote me 100% on that. I could have swore there was a commit in SDL about mouse grab on Macs in the last few months. Don't have ability to find it at the moment though.
I don't understand how it can be a security thing though if it works by toggling fullscreen using the mouse-hold method...
What SDL2 version?
I'm guessing it's using the version of SDL2 installed by Homebrew, which is 2.0.20. I just tried uninstalling the homebrew version of SDL and rebuilding, and it failed to build - which tells me that indeed it was linking against it. It builds again after I run brew install sdl2
, so it must be using 2.0.20.
Does that seems related?
I don't remember that being the case, no