mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 14:04:20 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user