From b6b05e93a4119beac0a3e65070660ac4c94adc8a Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 17 Nov 2022 19:44:42 +0100 Subject: [PATCH] [xfreerdp] fix sending monitor layout PDU only send it if there are more monitors available. --- client/X11/xf_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_monitor.c b/client/X11/xf_monitor.c index 2956aa85d..d32518bc7 100644 --- a/client/X11/xf_monitor.c +++ b/client/X11/xf_monitor.c @@ -580,7 +580,7 @@ BOOL xf_detect_monitors(xfContext* xfc, UINT32* pMaxWidth, UINT32* pMaxHeight) /* some 2008 server freeze at logon if we announce support for monitor layout PDU with * #monitors < 2. So let's announce it only if we have more than 1 monitor. */ - if (settings->MonitorCount) + if (settings->MonitorCount > 1) settings->SupportMonitorLayoutPdu = TRUE; rc = TRUE;