src/events/SDL_mouse.c
changeset 6301 e8a69c5378e7
parent 6300 82f95e6af4cd
child 6302 b0ae93a5b8d6
equal deleted inserted replaced
6300:82f95e6af4cd 6301:e8a69c5378e7
   463                 return;
   463                 return;
   464             }
   464             }
   465         }
   465         }
   466         mouse->cur_cursor = cursor;
   466         mouse->cur_cursor = cursor;
   467     } else {
   467     } else {
   468         cursor = mouse->cur_cursor;
   468         if (mouse->focus) {
       
   469             cursor = mouse->cur_cursor;
       
   470         } else {
       
   471             cursor = mouse->def_cursor;
       
   472         }
   469     }
   473     }
   470 
   474 
   471     if (cursor && mouse->cursor_shown && !mouse->relative_mode) {
   475     if (cursor && mouse->cursor_shown && !mouse->relative_mode) {
   472         if (mouse->ShowCursor) {
   476         if (mouse->ShowCursor) {
   473             mouse->ShowCursor(cursor);
   477             mouse->ShowCursor(cursor);