src/events/SDL_mouse.c
changeset 6300 82f95e6af4cd
parent 6138 4c64952a58fb
child 6301 e8a69c5378e7
     1.1 --- a/src/events/SDL_mouse.c	Mon Feb 20 23:54:33 2012 -0500
     1.2 +++ b/src/events/SDL_mouse.c	Fri Feb 03 23:08:48 2012 +1300
     1.3 @@ -323,7 +323,7 @@
     1.4      /* Set the relative mode */
     1.5      mouse->relative_mode = enabled;
     1.6  
     1.7 -    if (!enabled) {
     1.8 +    if (!enabled && mouse->focus) {
     1.9          /* Restore the expected mouse position */
    1.10          SDL_WarpMouseInWindow(mouse->focus, mouse->x, mouse->y);
    1.11      }