summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-01-20 12:25:34 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-01-20 12:33:47 +0000
commit92e9bf82b22ca59ac0009a6a4a641a1056c34bf4 (patch)
tree9756ad3b5d52ad4642659352e795b4f06d798728 /tools
parent3138d06893b3380473cfab60ee19e80cb3b61192 (diff)
intel-virtual-output: Disable remote display if SetCrtcConfig fails
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 25571c41..73475e96 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -1190,6 +1190,8 @@ err:
dst->x, dst->y, dst->mode.id, dst->rotation,
&dst->rr_output, 1);
DBG(("%s-%s: XRRSetCrtcConfig %s\n", DisplayString(dst->dpy), dst->name, ret ? "failed" : "success"));
+ if (ret)
+ goto err;
ret = XRRSetPanning(dst->dpy, res, rr_crtc, memset(&panning, 0, sizeof(panning)));
DBG(("%s-%s: XRRSetPanning %s\n", DisplayString(dst->dpy), dst->name, ret ? "failed" : "success"));