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
This commit is contained in:
Ryan C. Gordon 2011-11-17 03:12:34 -05:00
parent 9ec5f91810
commit e0e5377a72

View file

@ -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) {