1
0
Эх сурвалжийг харах

SDL_SetCursor should not skip focus check

expikr 1 жил өмнө
parent
commit
6c172e5220

+ 3 - 1
src/events/SDL_mouse.c

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