mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-05 07:09:32 +00:00
Re-enable cursor clipping when clicking into a window when relative mouse mode is enabled
This commit is contained in:
@@ -621,6 +621,18 @@ static void WIN_HandleRawMouseInput(Uint64 timestamp, SDL_VideoData *data, HANDL
|
||||
button = SDL_BUTTON_LEFT;
|
||||
}
|
||||
}
|
||||
|
||||
if (windowdata->focus_click_pending & SDL_BUTTON(button)) {
|
||||
/* Ignore the button click for activation */
|
||||
if (!state) {
|
||||
windowdata->focus_click_pending &= ~SDL_BUTTON(button);
|
||||
WIN_UpdateClipCursor(window);
|
||||
}
|
||||
if (WIN_ShouldIgnoreFocusClick(windowdata)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
SDL_SendMouseButton(timestamp, window, mouseID, state, button);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user