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.
--- a/src/video/quartz/SDL_QuartzWM.m Wed Nov 16 21:13:39 2011 -0500
+++ b/src/video/quartz/SDL_QuartzWM.m Thu Nov 17 03:12:34 2011 -0500
@@ -243,6 +243,7 @@
CGEventSourceSetLocalEventsSuppressionInterval(evsrc, 0.0);
CGWarpMouseCursorPosition (cgp);
CFRelease(evsrc);
+ SDL_PrivateAppActive (QZ_IsMouseInWindow (this), SDL_APPMOUSEFOCUS);
}
void QZ_WarpWMCursor (_THIS, Uint16 x, Uint16 y) {