Parcourir la 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 il y a 13 ans
Parent
révision
3f6c4d003d
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6
    0
      vncviewer/DesktopWindow.cxx

+ 6
- 0
vncviewer/DesktopWindow.cxx Voir le fichier

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



Chargement…
Annuler
Enregistrer