Fix /monitor-list flag being ignored on X11/Wayland

This commit is contained in:
Max Roncace 2021-02-24 17:44:28 -05:00 committed by akallabeth
parent 06219e4ecb
commit bf9bce2c3e
2 changed files with 6 additions and 2 deletions

View File

@ -651,10 +651,12 @@ int main(int argc, char* argv[])
status = freerdp_client_settings_parse_command_line(settings, argc, argv, FALSE);
if (status)
{
BOOL list = settings->ListMonitors;
BOOL list;
rc = freerdp_client_settings_command_line_status_print(settings, status, argc, argv);
list = settings->ListMonitors;
if (list)
wlf_list_monitors(wlc);

View File

@ -59,10 +59,12 @@ int main(int argc, char* argv[])
status = freerdp_client_settings_parse_command_line(context->settings, argc, argv, FALSE);
if (status)
{
BOOL list = settings->ListMonitors;
BOOL list;
rc = freerdp_client_settings_command_line_status_print(settings, status, argc, argv);
list = settings->ListMonitors;
if (list)
xf_list_monitors(xfc);