Fixed the bug with wrong window resizing when user maximezes
the main window.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@244 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index a9931cc..5fb5b16 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -766,6 +766,10 @@
si.nPos = scrolloffset.x;
SetScrollInfo(getFrameHandle(), SB_HORZ, &si, TRUE);
}
+
+ // Update the cached client size
+ GetClientRect(getFrameHandle(), &r);
+ client_size = Rect(r.left, r.top, r.right, r.bottom);
}
bool RfbPlayer::setViewportOffset(const Point& tl) {