src/events/SDL_mouse.c
changeset 8944 045aac36daac
parent 8927 be64f5daf64b
child 8945 04248c700ada
     1.1 --- a/src/events/SDL_mouse.c	Fri May 30 09:50:47 2014 -0400
     1.2 +++ b/src/events/SDL_mouse.c	Thu Jun 05 00:02:42 2014 -0400
     1.3 @@ -474,11 +474,13 @@
     1.4  {
     1.5      SDL_Mouse *mouse = SDL_GetMouse();
     1.6  
     1.7 -    if ( window == NULL )
     1.8 +    if ( window == NULL ) {
     1.9          window = mouse->focus;
    1.10 +    }
    1.11  
    1.12 -    if ( window == NULL )
    1.13 +    if ( window == NULL ) {
    1.14          return;
    1.15 +    }
    1.16  
    1.17      if (mouse->WarpMouse) {
    1.18          mouse->WarpMouse(window, x, y);