src/video/quartz/SDL_QuartzEvents.m
changeset 1560 34b9e479047e
parent 1487 dc6b59e925a2
child 1629 ef4a796e7f24
equal deleted inserted replaced
1559:e7f61857028a 1560:34b9e479047e
   625         
   625         
   626         /* Restore cursor location if input was grabbed */
   626         /* Restore cursor location if input was grabbed */
   627         QZ_PrivateWarpCursor (this, cursor_loc.x, cursor_loc.y);
   627         QZ_PrivateWarpCursor (this, cursor_loc.x, cursor_loc.y);
   628         QZ_ChangeGrabState (this, QZ_ENABLE_GRAB);
   628         QZ_ChangeGrabState (this, QZ_ENABLE_GRAB);
   629     }
   629     }
       
   630     else {
       
   631         /* Update SDL's mouse location */
       
   632         NSPoint p;
       
   633         QZ_GetMouseLocation (this, &p);
       
   634         SDL_PrivateMouseMotion (0, 0, p.x, p.y);
       
   635     }
   630 }
   636 }
   631 
   637 
   632 static void QZ_DoDeactivate (_THIS) {
   638 static void QZ_DoDeactivate (_THIS) {
   633 
   639 
   634     /* Get the current cursor location, for restore on activate */
   640     /* Get the current cursor location, for restore on activate */