Browse Source

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
tags/v1.1.90
Pierre Ossman 13 years ago
parent
commit
3f6c4d003d
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      vncviewer/DesktopWindow.cxx

+ 6
- 0
vncviewer/DesktopWindow.cxx View File

@@ -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());
}



Loading…
Cancel
Save