src/events/SDL_mouse.c
changeset 6301 e8a69c5378e7
parent 6300 82f95e6af4cd
child 6302 b0ae93a5b8d6
     1.1 --- a/src/events/SDL_mouse.c	Fri Feb 03 23:08:48 2012 +1300
     1.2 +++ b/src/events/SDL_mouse.c	Fri Feb 03 23:53:51 2012 +1300
     1.3 @@ -465,7 +465,11 @@
     1.4          }
     1.5          mouse->cur_cursor = cursor;
     1.6      } else {
     1.7 -        cursor = mouse->cur_cursor;
     1.8 +        if (mouse->focus) {
     1.9 +            cursor = mouse->cur_cursor;
    1.10 +        } else {
    1.11 +            cursor = mouse->def_cursor;
    1.12 +        }
    1.13      }
    1.14  
    1.15      if (cursor && mouse->cursor_shown && !mouse->relative_mode) {