Revision: 5099
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5099&view=rev
Author:   ossman_
Date:     2013-05-22 11:59:38 +0000 (Wed, 22 May 2013)
Log Message:
-----------
Apparently it is more kosher to completely disassociate an
output from its CRTC than just removing the mode when
disabling an output. This is what "xrandr --off" does.

Modified Paths:
--------------
    trunk/unix/xserver/hw/vnc/XserverDesktop.cc
    trunk/unix/xserver/hw/vnc/xvnc.cc

Modified: trunk/unix/xserver/hw/vnc/XserverDesktop.cc
===================================================================
--- trunk/unix/xserver/hw/vnc/XserverDesktop.cc 2013-05-22 11:47:08 UTC (rev 
5098)
+++ trunk/unix/xserver/hw/vnc/XserverDesktop.cc 2013-05-22 11:59:38 UTC (rev 
5099)
@@ -934,8 +934,7 @@
     /* Missing? */
     if (iter == layout.end()) {
       /* Disable and move on... */
-      ret = RRCrtcSet(crtc, NULL, crtc->x, crtc->y, crtc->rotation,
-                      crtc->numOutputs, crtc->outputs);
+      ret = RRCrtcSet(crtc, NULL, crtc->x, crtc->y, crtc->rotation, 0, NULL);
       if (!ret) {
         vlog.error("Failed to disable unused CRTC for output '%s'",
                    output->name);

Modified: trunk/unix/xserver/hw/vnc/xvnc.cc
===================================================================
--- trunk/unix/xserver/hw/vnc/xvnc.cc   2013-05-22 11:47:08 UTC (rev 5098)
+++ trunk/unix/xserver/hw/vnc/xvnc.cc   2013-05-22 11:59:38 UTC (rev 5099)
@@ -1196,8 +1196,7 @@
         if ((crtc->x >= width) || (crtc->y >= height)) {
             /* Disable it */
             ret = vncRandRCrtcSet(pScreen, crtc, NULL,
-                                  crtc->x, crtc->y, crtc->rotation,
-                                  crtc->numOutputs, crtc->outputs);
+                                  crtc->x, crtc->y, crtc->rotation, 0, NULL);
             if (!ret)
                 ErrorF("Warning: Unable to disable CRTC that is outside of new 
screen dimensions");
             continue;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to