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:
parent
ea68a003a2
commit
5508c635cb
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue