Skip to content

Commit

Permalink
Merge branch 'Genymobile:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-JingShi authored Feb 11, 2025
2 parents 569b1bb + 986328f commit 747110c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/scrcpy.1
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,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 " value
Expand Down
8 changes: 4 additions & 4 deletions app/src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,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,
Expand Down Expand Up @@ -2799,9 +2798,10 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
#endif

if (!opts->window) {
// Without window, there cannot be any video playback or control
// Without window, there cannot be any video playback
opts->video_playback = false;
opts->control = false;
// Controls are still possible, allowing for options like
// --turn-screen-off
}

if (!opts->video) {
Expand Down

0 comments on commit 747110c

Please sign in to comment.