We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf38c30 commit 5aa6aefCopy full SHA for 5aa6aef
src/Libraries/INPUT/Source/sdl_events.c
@@ -266,7 +266,7 @@ void SetMouseXY(int mx, int my)
266
}
267
268
bool inside = (mx >= x && mx < x+w && my >= y && my < y+h);
269
- bool focus = (SDL_GetWindowFlags(window) & SDL_WINDOW_INPUT_FOCUS);
+ bool focus = (SDL_GetWindowFlags(window) & SDL_WINDOW_MOUSE_FOCUS);
270
271
if (!inside && focus)
272
{
0 commit comments