Преглед изворни кода

Make sure we do an initial resize

The local window manager might give us a window of a different size
than the one we request. Make sure that the remote resize setting
gets respected even in this case.
tags/v1.3.90
Pierre Ossman пре 9 година
родитељ
комит
bad31c2fb8
1 измењених фајлова са 12 додато и 4 уклоњено
  1. 12
    4
      vncviewer/DesktopWindow.cxx

+ 12
- 4
vncviewer/DesktopWindow.cxx Прегледај датотеку

@@ -658,12 +658,20 @@ void DesktopWindow::maximizeWindow()

void DesktopWindow::handleDesktopSize()
{
int width, height;
if (desktopSize.hasBeenSet()) {
int width, height;

if (sscanf(desktopSize.getValueStr(), "%dx%d", &width, &height) != 2)
return;
// An explicit size has been requested

if (sscanf(desktopSize.getValueStr(), "%dx%d", &width, &height) != 2)
return;

remoteResize(width, height);
remoteResize(width, height);
} else if (::remoteResize) {
// No explicit size, but remote resizing is on so make sure it
// matches whatever size the window ended up being
remoteResize(w(), h());
}
}



Loading…
Откажи
Сачувај