diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-04-15 14:09:09 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-04-15 14:09:09 +0000 |
commit | 3f6c4d003d4e9a2ce6dc95b08dc16e6dbed12d81 (patch) | |
tree | 5369de1307688af0ceaa9e9689b5407e048d744b /vncviewer | |
parent | 343e2e0605d1744112857cd1008157173bd06260 (diff) | |
download | tigervnc-3f6c4d003d4e9a2ce6dc95b08dc16e6dbed12d81.tar.gz tigervnc-3f6c4d003d4e9a2ce6dc95b08dc16e6dbed12d81.zip |
Workaround for when initial window size isn't what we requested.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4376 3789f03b-4d11-0410-bbf8-ca57d06f2519
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()); } |