From 7d7224abd88cb89389dba3bfd268c8d26b9fec1c Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 23 Oct 2019 15:03:39 +0200 Subject: [PATCH] Added missing check for monitor indices --- 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 372e4ee..4dc16d5 100644 --- a/client/X11/xf_monitor.c +++ b/client/X11/xf_monitor.c @@ -281,7 +281,7 @@ BOOL xf_detect_monitors(xfContext* xfc, UINT32* pMaxWidth, UINT32* pMaxHeight) this is required in case of a screen composed of more than one monitor but user did not enable multimonitor */ - if (settings->NumMonitorIds == 1) + if ((settings->NumMonitorIds == 1) && (vscreen->nmonitors > current_monitor)) { monitor = vscreen->monitors + current_monitor; -- 2.7.4