From 15e955545ee32ca238a8dd83c8eb893dfac66d6f Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Thu, 15 Mar 2018 08:45:54 +0100 Subject: nx-X11/programs/Xserver/hw/nxagent/Screen.c: do not try to set a NULL mode if the output was disconnected before. Fixes: ArcticaProject/nx-libs#677 --- nx-X11/programs/Xserver/hw/nxagent/Screen.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nx-X11/programs') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c index 333fda743..27398474a 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c @@ -4237,12 +4237,12 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen) #endif RROutputSetModes(pScrPriv->outputs[i], &mymode, 1, 0); } - } /* if disable_output */ - #ifdef DEBUG - fprintf(stderr, "nxagentAdjustRandRXinerama: setting mode [%s] ([%p]) refcnt [%d] for crtc %d\n", mymode->name, (void *) mymode, mymode->refcnt, i); - #endif - RRCrtcSet(pScrPriv->crtcs[i], mymode, new_x, new_y, RR_Rotate_0, 1, &(pScrPriv->outputs[i])); + #ifdef DEBUG + fprintf(stderr, "nxagentAdjustRandRXinerama: setting mode [%s] ([%p]) refcnt [%d] for crtc %d\n", mymode->name, (void *) mymode, mymode->refcnt, i); + #endif + RRCrtcSet(pScrPriv->crtcs[i], mymode, new_x, new_y, RR_Rotate_0, 1, &(pScrPriv->outputs[i])); + } /* if disable_output */ /* throw away the mode if otherwise unused. We do not need it anymore. We call FreeResource() to ensure the system will not -- cgit v1.2.3