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>
master
Romain Vimont 4 years ago
parent ea68a003a2
commit 5508c635cb

@ -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;

Loading…
Cancel
Save