Also hide the cursor when grabbed

This commit is contained in:
Tristam MacDonald 2017-07-15 18:02:32 -07:00
parent 45c5568c89
commit ed761bef7d

View file

@ -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(())
} }