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