Browse Source

SDL_SetCursor should not skip focus check

expikr 3 months ago
parent
commit
6c172e5220
1 changed files with 3 additions and 1 deletions
  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;
         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;