Ver Fonte

SDL_SetCursor should not skip focus check

expikr há 10 meses atrás
pai
commit
6c172e5220
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      src/events/SDL_mouse.c

+ 3 - 1
src/events/SDL_mouse.c

@@ -1627,7 +1627,9 @@ bool SDL_SetCursor(SDL_Cursor *cursor)
             }
         }
         mouse->cur_cursor = cursor;
-    } else if (mouse->focus) {
+    }
+
+    if (mouse->focus) {
         cursor = mouse->cur_cursor;
     } else {
         cursor = mouse->def_cursor;