Blame SOURCES/Fix-monitor-list-flag-being-ignored-on-X11-Wayland.patch

57b3e4
From bf9bce2c3e6c716cc708716484124c1fb47cb531 Mon Sep 17 00:00:00 2001
57b3e4
From: Max Roncace <me@caseif.net>
57b3e4
Date: Wed, 24 Feb 2021 17:44:28 -0500
57b3e4
Subject: [PATCH] Fix /monitor-list flag being ignored on X11/Wayland
57b3e4
57b3e4
---
57b3e4
 client/Wayland/wlfreerdp.c | 4 +++-
57b3e4
 client/X11/cli/xfreerdp.c  | 4 +++-
57b3e4
 2 files changed, 6 insertions(+), 2 deletions(-)
57b3e4
57b3e4
diff --git a/client/Wayland/wlfreerdp.c b/client/Wayland/wlfreerdp.c
57b3e4
index aca734211..26c5452a5 100644
57b3e4
--- a/client/Wayland/wlfreerdp.c
57b3e4
+++ b/client/Wayland/wlfreerdp.c
57b3e4
@@ -651,10 +651,12 @@ int main(int argc, char* argv[])
57b3e4
 	status = freerdp_client_settings_parse_command_line(settings, argc, argv, FALSE);
57b3e4
 	if (status)
57b3e4
 	{
57b3e4
-		BOOL list = settings->ListMonitors;
57b3e4
+		BOOL list;
57b3e4
 
57b3e4
 		rc = freerdp_client_settings_command_line_status_print(settings, status, argc, argv);
57b3e4
 
57b3e4
+		list = settings->ListMonitors;
57b3e4
+
57b3e4
 		if (list)
57b3e4
 			wlf_list_monitors(wlc);
57b3e4
 
57b3e4
diff --git a/client/X11/cli/xfreerdp.c b/client/X11/cli/xfreerdp.c
57b3e4
index 5b7021944..786a7eb5d 100644
57b3e4
--- a/client/X11/cli/xfreerdp.c
57b3e4
+++ b/client/X11/cli/xfreerdp.c
57b3e4
@@ -59,10 +59,12 @@ int main(int argc, char* argv[])
57b3e4
 	status = freerdp_client_settings_parse_command_line(context->settings, argc, argv, FALSE);
57b3e4
 	if (status)
57b3e4
 	{
57b3e4
-		BOOL list = settings->ListMonitors;
57b3e4
+		BOOL list;
57b3e4
 
57b3e4
 		rc = freerdp_client_settings_command_line_status_print(settings, status, argc, argv);
57b3e4
 
57b3e4
+		list = settings->ListMonitors;
57b3e4
+
57b3e4
 		if (list)
57b3e4
 			xf_list_monitors(xfc);
57b3e4
 
57b3e4
-- 
57b3e4
2.37.1
57b3e4