[PATCH] randr/monitor: don't skip server primary if we have a client primary.
Dave Airlie
airlied at gmail.com
Sun Mar 22 18:46:06 PDT 2015
From: Dave Airlie <airlied at redhat.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
randr/rrmonitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/randr/rrmonitor.c b/randr/rrmonitor.c
index 02c58c5..66e5c3c 100644
--- a/randr/rrmonitor.c
+++ b/randr/rrmonitor.c
@@ -336,7 +336,7 @@ RRMonitorMakeList(ScreenPtr screen, RRMonitorPtr *monitors_ret, int *nmon_ret)
*/
for (c = 0; c < pScrPriv->numCrtcs; c++) {
RRCrtcPtr crtc = pScrPriv->crtcs[c];
- if (c == list.server_primary)
+ if (c == list.server_primary && list.client_primary < 0)
continue;
if (!list.server_crtc[c])
--
2.1.0
More information about the xorg-devel
mailing list