From e0e5377a72c2133e68f4ece0c6b55b014060f22a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 17 Nov 2011 03:12:34 -0500 Subject: [PATCH] Quartz: When warping the mouse, update the APPMOUSEFOCUS state. Fixes cursor being visible in middle of window until the next mousemove event, when it has just been grabbed+hidden. --HG-- branch : SDL-1.2 --- src/video/quartz/SDL_QuartzWM.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/quartz/SDL_QuartzWM.m b/src/video/quartz/SDL_QuartzWM.m index 6a7b1e5ec..f599954bb 100644 --- a/src/video/quartz/SDL_QuartzWM.m +++ b/src/video/quartz/SDL_QuartzWM.m @@ -243,6 +243,7 @@ void QZ_PrivateWarpCursor (_THIS, int x, int y) { CGEventSourceSetLocalEventsSuppressionInterval(evsrc, 0.0); CGWarpMouseCursorPosition (cgp); CFRelease(evsrc); + SDL_PrivateAppActive (QZ_IsMouseInWindow (this), SDL_APPMOUSEFOCUS); } void QZ_WarpWMCursor (_THIS, Uint16 x, Uint16 y) {