Quartz: When warping the mouse, update the APPMOUSEFOCUS state. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Thu, 17 Nov 2011 03:12:34 -0500
branchSDL-1.2
changeset 6087 185f8588deaa
parent 6084 2085129e7eab
child 6099 c5d651a8b679
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.
src/video/quartz/SDL_QuartzWM.m
--- 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) {