Add option --window-title

Add an option to set a custom window title.

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
beango1
2019-06-23 13:02:34 -04:00
committed by Romain Vimont
parent 056e47e752
commit 8e65c10720
5 changed files with 20 additions and 4 deletions

View File

@@ -380,7 +380,10 @@ scrcpy(const struct scrcpy_options *options) {
controller_started = true;
}
if (!screen_init_rendering(&screen, device_name, frame_size,
const char *window_title =
options->window_title ? options->window_title : device_name;
if (!screen_init_rendering(&screen, window_title, frame_size,
options->always_on_top)) {
goto end;
}