Skip to content

Commit

Permalink
Throw around some QZ_UpdateCursor() calls to fix wrongly-shown system…
Browse files Browse the repository at this point in the history
… cursor.

Fixes Bugzilla #1339.
  • Loading branch information
icculus committed Jan 2, 2012
1 parent 762aa7a commit fcd1633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/quartz/SDL_QuartzEvents.m
Expand Up @@ -721,6 +721,8 @@ void QZ_DoActivate (_THIS) {
QZ_GetMouseLocation (this, &p);
SDL_PrivateMouseMotion (0, 0, p.x, p.y);
}

QZ_UpdateCursor(this);
}

void QZ_DoDeactivate (_THIS) {
Expand Down
1 change: 1 addition & 0 deletions src/video/quartz/SDL_QuartzWM.m
Expand Up @@ -436,6 +436,7 @@ SDL_GrabMode QZ_GrabInput (_THIS, SDL_GrabMode grab_mode) {
QZ_ChangeGrabState (this, QZ_DISABLE_GRAB);

current_grab_mode = doGrab ? SDL_GRAB_ON : SDL_GRAB_OFF;
QZ_UpdateCursor(this);
}

return current_grab_mode;
Expand Down

0 comments on commit fcd1633

Please sign in to comment.