Display and control your Android device
Allow controls with --no-window
Sam Listopad II986328ff9ea8
diff --git a/app/scrcpy.1 b/app/scrcpy.1index 924905e4..75bf6088 100644--- a/app/scrcpy.1+++ b/app/scrcpy.1@@ -389,7 +389,7 @@ Disable video playback on the computer..TP.B \-\-no\-window-Disable scrcpy window. Implies --no-video-playback and --no-control.+Disable scrcpy window. Implies --no-video-playback..TP.BI "\-\-orientation " valuediff --git a/app/src/cli.c b/app/src/cli.cindex 756934ea..a2e6ab1a 100644--- a/app/src/cli.c+++ b/app/src/cli.c@@ -689,8 +689,7 @@ static const struct sc_option options[] = {{.longopt_id = OPT_NO_WINDOW,.longopt = "no-window",- .text = "Disable scrcpy window. Implies --no-video-playback and "- "--no-control.",+ .text = "Disable scrcpy window. Implies --no-video-playback.",},{.longopt_id = OPT_ORIENTATION,@@ -2761,9 +2760,10 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],#endifif (!opts->window) {- // Without window, there cannot be any video playback or control+ // Without window, there cannot be any video playbackopts->video_playback = false;- opts->control = false;+ // Controls are still possible, allowing for options like+ // --turn-screen-off}if (!opts->video) {