Commit 15e95554 authored by Mihai Moldovan's avatar Mihai Moldovan

nx-X11/programs/Xserver/hw/nxagent/Screen.c: do not try to set a NULL mode if…

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
parent 6f8cdebc
...@@ -4237,12 +4237,12 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen) ...@@ -4237,12 +4237,12 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
#endif #endif
RROutputSetModes(pScrPriv->outputs[i], &mymode, 1, 0); RROutputSetModes(pScrPriv->outputs[i], &mymode, 1, 0);
} }
} /* if disable_output */
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "nxagentAdjustRandRXinerama: setting mode [%s] ([%p]) refcnt [%d] for crtc %d\n", mymode->name, (void *) mymode, mymode->refcnt, i); fprintf(stderr, "nxagentAdjustRandRXinerama: setting mode [%s] ([%p]) refcnt [%d] for crtc %d\n", mymode->name, (void *) mymode, mymode->refcnt, i);
#endif #endif
RRCrtcSet(pScrPriv->crtcs[i], mymode, new_x, new_y, RR_Rotate_0, 1, &(pScrPriv->outputs[i])); 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 /* throw away the mode if otherwise unused. We do not need it
anymore. We call FreeResource() to ensure the system will not anymore. We call FreeResource() to ensure the system will not
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment