summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-01-08 09:17:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-01-08 09:17:19 +0000
commit371219c34a54707a0d568c51defae478079fbf71 (patch)
tree1ec1750d5aeab62af7a17f89ceb3ea27fb200839
parent9083d2ed5876f1891727b512da57766d8d11af56 (diff)
intel-virtual-output: Virtual heads are numbered from index 1
When checking for VIRTUAL support on the xserver, it helps to check for the right name. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tools/virtual.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 6b6d9771..77e6a586 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -994,14 +994,14 @@ static int check_virtual(struct display *display)
if (output == NULL)
continue;
- if (strcmp(output->name, "VIRTUAL0") == 0)
+ if (strcmp(output->name, "VIRTUAL1") == 0)
found = 0;
XRRFreeOutputInfo(output);
}
XRRFreeScreenResources(res);
- DBG(XRR, ("%s(%s): has VIRTUAL0? %d\n",
+ DBG(XRR, ("%s(%s): has VIRTUAL1? %d\n",
__func__, DisplayString(display->dpy), found));
return found;
}