src/video/quartz/SDL_QuartzWM.m
branchSDL-1.2
changeset 6121 e6fcc5368210
parent 6087 185f8588deaa
child 6137 4720145f848b
--- a/src/video/quartz/SDL_QuartzWM.m	Thu Dec 29 12:21:49 2011 -0500
+++ b/src/video/quartz/SDL_QuartzWM.m	Fri Dec 30 03:18:26 2011 -0500
@@ -124,16 +124,14 @@
         QZ_UpdateCursor(this);
     }
     else {
-        if (qz_window ==nil || (mode_flags & SDL_FULLSCREEN)) {
-            [ cursor->nscursor set ];
-        }
-        else {
+        if ( qz_window != nil && !(mode_flags & SDL_FULLSCREEN) ) {
             [ qz_window invalidateCursorRectsForView: [ qz_window contentView ] ];
         }
         if ( ! cursor_should_be_visible ) {
             cursor_should_be_visible = YES;
             QZ_ChangeGrabState (this, QZ_SHOWCURSOR);
         }
+        [ cursor->nscursor performSelectorOnMainThread:@selector(set) withObject:nil waitUntilDone:NO ];
         QZ_UpdateCursor(this);
     }