Throw around some QZ_UpdateCursor() calls to fix wrongly-shown system cursor. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 01 Jan 2012 20:45:31 -0500
branchSDL-1.2
changeset 6150 5f0b3693ab60
parent 6149 57574a485acb
child 6151 331f27f01cdb
Throw around some QZ_UpdateCursor() calls to fix wrongly-shown system cursor. Fixes Bugzilla #1339.
src/video/quartz/SDL_QuartzEvents.m
src/video/quartz/SDL_QuartzWM.m
--- a/src/video/quartz/SDL_QuartzEvents.m	Mon Jan 02 00:48:56 2012 -0500
+++ b/src/video/quartz/SDL_QuartzEvents.m	Sun Jan 01 20:45:31 2012 -0500
@@ -721,6 +721,8 @@
         QZ_GetMouseLocation (this, &p);
         SDL_PrivateMouseMotion (0, 0, p.x, p.y);
     }
+
+    QZ_UpdateCursor(this);
 }
 
 void QZ_DoDeactivate (_THIS) {
--- a/src/video/quartz/SDL_QuartzWM.m	Mon Jan 02 00:48:56 2012 -0500
+++ b/src/video/quartz/SDL_QuartzWM.m	Sun Jan 01 20:45:31 2012 -0500
@@ -436,6 +436,7 @@
             QZ_ChangeGrabState (this, QZ_DISABLE_GRAB);
         
         current_grab_mode = doGrab ? SDL_GRAB_ON : SDL_GRAB_OFF;
+        QZ_UpdateCursor(this);
     }
 
     return current_grab_mode;