mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Also hide the cursor when grabbed
This commit is contained in:
parent
45c5568c89
commit
ed761bef7d
|
@ -523,6 +523,7 @@ impl Window {
|
|||
Ok(())
|
||||
},
|
||||
CursorState::Grab => {
|
||||
let _: () = unsafe { msg_send![cls, hide] };
|
||||
let _: i32 = unsafe { CGAssociateMouseAndMouseCursorPosition(false) };
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue