mirror of
https://github.com/Genymobile/scrcpy
synced 2024-12-20 06:11:17 +00:00
Capture mouse on start for --hid-mouse
If relative mode is enabled, capture the mouse immediately.
This commit is contained in:
parent
4bf9c057fe
commit
063d103dd6
@ -707,6 +707,11 @@ sc_screen_update_frame(struct sc_screen *screen) {
|
||||
screen->has_frame = true;
|
||||
// this is the very first frame, show the window
|
||||
sc_screen_show_initial_window(screen);
|
||||
|
||||
if (sc_screen_is_relative_mode(screen)) {
|
||||
// Capture mouse on start
|
||||
sc_screen_capture_mouse(screen, true);
|
||||
}
|
||||
}
|
||||
|
||||
sc_screen_render(screen, false);
|
||||
|
Loading…
Reference in New Issue
Block a user