Quake3e icon indicating copy to clipboard operation
Quake3e copied to clipboard

Weird cursor behavior on M1 + Vulkan in fullscreen

Open taoeffect opened this issue 2 years ago • 6 comments

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.

taoeffect avatar Jan 25 '22 21:01 taoeffect

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.

ensiform avatar Jan 25 '22 21:01 ensiform

I don't understand how it can be a security thing though if it works by toggling fullscreen using the mouse-hold method...

taoeffect avatar Jan 30 '22 00:01 taoeffect

What SDL2 version?

ec- avatar Jan 30 '22 23:01 ec-

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.

taoeffect avatar Jan 31 '22 05:01 taoeffect

Does that seems related?

kuncevic avatar Apr 29 '22 13:04 kuncevic

I don't remember that being the case, no

taoeffect avatar May 05 '22 02:05 taoeffect