SDL_SetCursor should not skip focus check

This commit is contained in:
expikr authored and Sam Lantinga committed 2025-04-28 09:41:44 -07:00
1 parent cbf44700d8
commit 6c172e5220
1 file changed
+3 -1
+3 -1
View File
@@ -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;