Skip to content

Commit 6c172e5

Browse files
expikrslouken
authored andcommitted
SDL_SetCursor should not skip focus check
1 parent cbf4470 commit 6c172e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/events/SDL_mouse.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,9 @@ bool SDL_SetCursor(SDL_Cursor *cursor)
16271627
}
16281628
}
16291629
mouse->cur_cursor = cursor;
1630-
} else if (mouse->focus) {
1630+
}
1631+
1632+
if (mouse->focus) {
16311633
cursor = mouse->cur_cursor;
16321634
} else {
16331635
cursor = mouse->def_cursor;

0 commit comments

Comments
 (0)