summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-02-02 14:42:22 +1000
committerDave Airlie <airlied@redhat.com>2015-02-02 14:42:22 +1000
commitb7eda89eafd778f5c6c05062502e35ec1c240f3d (patch)
tree74a8aa50a345bf72def53f880363aba50043578c
parentd3435f6b2a3176b598d2f138f9cd4a6b08efc056 (diff)
monitors: fix output reportingmonitors
xrandr was giving the outputs from 0 for each monitor instead of incrementing the pointer. Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/XrrMonitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/XrrMonitor.c b/src/XrrMonitor.c
index dab42a8..276c937 100644
--- a/src/XrrMonitor.c
+++ b/src/XrrMonitor.c
@@ -112,6 +112,7 @@ XRRGetMonitors(Display *dpy, Window window, int *nmonitors)
xoutput = (CARD32 *) buf;
for (o = 0; o < xmon->noutput; o++)
output[o] = xoutput[o];
+ output += xmon->noutput;
buf += xmon->noutput * 4;
}
Xfree(buf_head);