<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - intel-virtual-output virtual screens behaving strangely."
href="https://bugs.freedesktop.org/show_bug.cgi?id=76146#c25">Comment # 25</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - intel-virtual-output virtual screens behaving strangely."
href="https://bugs.freedesktop.org/show_bug.cgi?id=76146">bug 76146</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>Any luck with:
diff --git a/tools/virtual.c b/tools/virtual.c
index 0dfd308..64d345a 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -941,6 +941,20 @@ static int clone_init_xfer(struct clone *clone)
return 0;
}
+static XRRPanning *set_panning(XRRPanning *p, struct output *o)
+{
+ memset(p, 0, sizeof(*p));
+
+ p->timestamp = CurrentTime;
+
+ p->track_left = p->left = o->x;
+ p->track_top = p->top = o->y;
+ p->track_width = p->width = mode_width(&p->mode, p->rotation);
+ p->track_height = p->height = mode_height(&p->mode, p->rotation);
+
+ return p;
+}
+
static void clone_update(struct clone *clone)
{
if (!clone->rr_update)
@@ -1254,7 +1268,7 @@ err:
if (ret)
goto err;
- ret = XRRSetPanning(dst->dpy, res, rr_crtc,
memset(&panning, 0, sizeof(panning)));
+ ret = XRRSetPanning(dst->dpy, res, rr_crtc,
set_panning(&panning, dst));
DBG(("%s-%s: XRRSetPanning %s\n",
DisplayString(dst->dpy), dst->name, ret ? "failed" : "success"));
(void)ret;</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>