Move multimon/span logic from cmdline.c to client.c post processing
This commit is contained in:
parent
1c1ef01691
commit
65aab2569d
@ -130,6 +130,19 @@ static BOOL freerdp_client_settings_post_process(rdpSettings* settings)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Moved logic for Multimon and Span monitors to force fullscreen, so
|
||||
* that the rdp file also triggers this functionality */
|
||||
if (settings->SpanMonitors)
|
||||
{
|
||||
settings->UseMultimon = TRUE;
|
||||
settings->Fullscreen = TRUE;
|
||||
}
|
||||
else if (settings->UseMultimon)
|
||||
{
|
||||
settings->Fullscreen = TRUE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
out_error:
|
||||
|
@ -1281,8 +1281,6 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
|
||||
CommandLineSwitchCase(arg, "multimon")
|
||||
{
|
||||
settings->UseMultimon = TRUE;
|
||||
settings->SpanMonitors = FALSE;
|
||||
settings->Fullscreen = TRUE;
|
||||
|
||||
if (arg->Flags & COMMAND_LINE_VALUE_PRESENT)
|
||||
{
|
||||
@ -1294,9 +1292,7 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
|
||||
}
|
||||
CommandLineSwitchCase(arg, "span")
|
||||
{
|
||||
settings->UseMultimon = TRUE;
|
||||
settings->SpanMonitors = TRUE;
|
||||
settings->Fullscreen = TRUE;
|
||||
}
|
||||
CommandLineSwitchCase(arg, "workarea")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user