Enable mouse focus clickthrough in OTG mode

A single click on the window must both give focus and capture the mouse.

PR #2974 <https://github.com/Genymobile/scrcpy/pull/2974>
This commit is contained in:
Romain Vimont 2022-01-27 23:32:37 +01:00
parent ea68a003a2
commit 5508c635cb

View file

@ -62,6 +62,10 @@ scrcpy_otg(struct scrcpy_options *options) {
atexit(SDL_Quit);
if (!SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1")) {
LOGW("Could not enable mouse focus clickthrough");
}
bool ret = false;
struct sc_hid_keyboard *keyboard = NULL;