[Bug 76146] intel-virtual-output virtual screens behaving strangely.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Mar 14 00:44:10 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=76146
--- Comment #15 from Chris Wilson <chris at chris-wilson.co.uk> ---
Slightly safer:
diff --git a/tools/virtual.c b/tools/virtual.c
index 8b8d511..2d18aa4 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -510,7 +510,18 @@ static int clone_update_modes__randr(struct clone *clone)
}
}
- clone->dst.rr_crtc = from_info->crtc;
+ /* Disable the remote output */
+ if (from_info->crtc != clone->dst.rr_crtc) {
+ XRRPanning panning;
+
+ DBG(("%s(%s-%s): disabling active CRTC\n", __func__,
+ DisplayString(clone->dst.dpy), clone->dst.name));
+ XRRSetCrtcConfig(clone->dst.dpy, from_res, from_info->crtc,
CurrentTime,
+ 0, 0, None, RR_Rotate_0, NULL, 0);
+ XRRSetPanning(dst->dpy, res, from_info->crtc, memset(&panning,
0, sizeof(panning)));
+
+ clone->dst.rr_crtc = 0;
+ }
/* Clear all current UserModes on the output, including any active ones
*/
if (to_info->crtc) {
--
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/a1639a42/attachment.html>
More information about the intel-gfx-bugs
mailing list