[Bug 76146] intel-virtual-output virtual screens behaving strangely.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 14 07:17:11 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=76146

--- Comment #25 from Chris Wilson <chris at chris-wilson.co.uk> ---
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;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20140314/211e7f8a/attachment-0001.html>


More information about the intel-gfx-bugs mailing list