Skip to content

Commit

Permalink
Quartz: When warping the mouse, update the APPMOUSEFOCUS state.
Browse files Browse the repository at this point in the history
Fixes cursor being visible in middle of window until the next mousemove event,
 when it has just been grabbed+hidden.
  • Loading branch information
icculus committed Nov 17, 2011
1 parent 7f9761f commit 5d19ed6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/quartz/SDL_QuartzWM.m
Expand Up @@ -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) {
Expand Down

0 comments on commit 5d19ed6

Please sign in to comment.