Disable "show touches" once window is closed
If --show-touches is set, then the option must be disabled on quit. Since it executes an adb command, it takes some time, so close the window beforehand so that the close window button does not seem unresponsive.
This commit is contained in:
parent
66ec252893
commit
dd2a5c1ecf
1 changed files with 2 additions and 2 deletions
|
@ -190,12 +190,12 @@ SDL_bool scrcpy(const struct scrcpy_options *options) {
|
||||||
event_loop();
|
event_loop();
|
||||||
LOGD("quit...");
|
LOGD("quit...");
|
||||||
|
|
||||||
|
screen_destroy(&screen);
|
||||||
|
|
||||||
if (options->show_touches) {
|
if (options->show_touches) {
|
||||||
LOGI("Disable show_touches");
|
LOGI("Disable show_touches");
|
||||||
set_show_touches_enabled(options->serial, SDL_FALSE);
|
set_show_touches_enabled(options->serial, SDL_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
screen_destroy(&screen);
|
|
||||||
finally_stop_and_join_controller:
|
finally_stop_and_join_controller:
|
||||||
controller_stop(&controller);
|
controller_stop(&controller);
|
||||||
controller_join(&controller);
|
controller_join(&controller);
|
||||||
|
|
Loading…
Reference in a new issue