From ed761bef7d78ec0f9424460d98d1193796a7ae74 Mon Sep 17 00:00:00 2001 From: Tristam MacDonald Date: Sat, 15 Jul 2017 18:02:32 -0700 Subject: [PATCH] Also hide the cursor when grabbed --- src/platform/macos/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/macos/window.rs b/src/platform/macos/window.rs index cbd66056..62f0720a 100644 --- a/src/platform/macos/window.rs +++ b/src/platform/macos/window.rs @@ -523,6 +523,7 @@ impl Window { Ok(()) }, CursorState::Grab => { + let _: () = unsafe { msg_send![cls, hide] }; let _: i32 = unsafe { CGAssociateMouseAndMouseCursorPosition(false) }; Ok(()) }