[Bug 76146] intel-virtual-output virtual screens behaving strangely.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Mar 14 00:41:07 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=76146
--- Comment #14 from Chris Wilson <chris at chris-wilson.co.uk> ---
What's odd here is that we try to explicitly disable panning when copying the
modes across. How about if we disable the remote outputs upon startup instead?
diff --git a/tools/virtual.c b/tools/virtual.c
index 8b8d511..2e94365 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) {
+ 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/5fcfb7b7/attachment.html>
More information about the intel-gfx-bugs
mailing list