Re-enable cursor clipping when clicking into a window when relative mouse mode is enabled
parent
2d9aff6433
commit
a8ed32c5f7
|
@ -621,6 +621,18 @@ static void WIN_HandleRawMouseInput(Uint64 timestamp, SDL_VideoData *data, HANDL
|
||||||
button = SDL_BUTTON_LEFT;
|
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);
|
SDL_SendMouseButton(timestamp, window, mouseID, state, button);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue