瀏覽代碼

Update fullscreen window if changing fullScreenAllMonitors option

tags/v1.8.90
Peter Åstrand (astrand) 6 年之前
父節點
當前提交
a890572b8d
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      vncviewer/DesktopWindow.cxx

+ 5
- 2
vncviewer/DesktopWindow.cxx 查看文件

@@ -762,7 +762,8 @@ void DesktopWindow::fullscreen_on()
fullscreen_screens(top, bottom, left, right);
}

fullscreen();
if (!fullscreen_active())
fullscreen();
}

void DesktopWindow::grabKeyboard()
@@ -1186,7 +1187,9 @@ void DesktopWindow::handleOptions(void *data)
else
self->ungrabKeyboard();

if (fullScreen && !self->fullscreen_active())
// Call fullscreen_on even if active since it handles
// fullScreenAllMonitors
if (fullScreen)
self->fullscreen_on();
else if (!fullScreen && self->fullscreen_active())
self->fullscreen_off();

Loading…
取消
儲存