瀏覽代碼

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.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5099 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.3.90
Pierre Ossman 11 年之前
父節點
當前提交
1556e8148d
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1
    2
      unix/xserver/hw/vnc/XserverDesktop.cc
  2. 1
    2
      unix/xserver/hw/vnc/xvnc.cc

+ 1
- 2
unix/xserver/hw/vnc/XserverDesktop.cc 查看文件

@@ -934,8 +934,7 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
/* 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);

+ 1
- 2
unix/xserver/hw/vnc/xvnc.cc 查看文件

@@ -1196,8 +1196,7 @@ static Bool vncRandRScreenSetSize(ScreenPtr pScreen,
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;

Loading…
取消
儲存