<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [ivo] In a tri-head configuration on a laptop, one of the external screens is not repainted"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78293#c37">Comment # 37</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [ivo] In a tri-head configuration on a laptop, one of the external screens is not repainted"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78293">bug 78293</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>Actually, how about:

diff --git a/tools/virtual.c b/tools/virtual.c
index 8f707b7..956fabb 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -927,6 +927,10 @@ static RROutput claim_virtual(struct display *display,
char *output_name, int nc
        XRRDeleteOutputMode(dpy, rr_output, id);
        XRRDestroyMode(dpy, id);

+       /* And hide it again */
+       res = XRRGetScreenResources(dpy, display->root);
+       if (res == NULL)
+               XRRFreeScreenResources(res);
 out:
        XUngrabServer(dpy);</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>