src/video/quartz/SDL_QuartzWM.m
branchSDL-1.2
changeset 6121 e6fcc5368210
parent 6087 185f8588deaa
child 6137 4720145f848b
equal deleted inserted replaced
6118:adbed7ec5704 6121:e6fcc5368210
   122             QZ_ChangeGrabState (this, QZ_HIDECURSOR);
   122             QZ_ChangeGrabState (this, QZ_HIDECURSOR);
   123         }
   123         }
   124         QZ_UpdateCursor(this);
   124         QZ_UpdateCursor(this);
   125     }
   125     }
   126     else {
   126     else {
   127         if (qz_window ==nil || (mode_flags & SDL_FULLSCREEN)) {
   127         if ( qz_window != nil && !(mode_flags & SDL_FULLSCREEN) ) {
   128             [ cursor->nscursor set ];
       
   129         }
       
   130         else {
       
   131             [ qz_window invalidateCursorRectsForView: [ qz_window contentView ] ];
   128             [ qz_window invalidateCursorRectsForView: [ qz_window contentView ] ];
   132         }
   129         }
   133         if ( ! cursor_should_be_visible ) {
   130         if ( ! cursor_should_be_visible ) {
   134             cursor_should_be_visible = YES;
   131             cursor_should_be_visible = YES;
   135             QZ_ChangeGrabState (this, QZ_SHOWCURSOR);
   132             QZ_ChangeGrabState (this, QZ_SHOWCURSOR);
   136         }
   133         }
       
   134         [ cursor->nscursor performSelectorOnMainThread:@selector(set) withObject:nil waitUntilDone:NO ];
   137         QZ_UpdateCursor(this);
   135         QZ_UpdateCursor(this);
   138     }
   136     }
   139 
   137 
   140     return 1;
   138     return 1;
   141 }
   139 }