diff options
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/DesktopWindow.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 7ce36b4f..5628142a 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -57,6 +57,12 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name, setName(name); show(); + + // The window manager might give us an initial window size that is different + // than the one we requested, and in those cases we need to manually adjust + // the scroll widget for things to behave sanely. + if ((w != this->w()) || (h != this->h())) + scroll->size(this->w(), this->h()); } |