summaryrefslogtreecommitdiff
path: root/tools/virtual.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/virtual.c')
-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"));