From 371219c34a54707a0d568c51defae478079fbf71 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 8 Jan 2016 09:17:19 +0000 Subject: 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 --- tools/virtual.c | 4 ++-- 1 file 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; } -- cgit v1.2.3