From: george82 Date: Tue, 15 Mar 2005 16:34:57 +0000 (+0000) Subject: Fixed the bug with wrong window resizing when user maximezes X-Git-Tag: v0.0.90~384^2~591 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a758a7a46744002ecda8bd9d8947cc4d0336851a;p=tigervnc.git 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 a9931cc6..5fb5b161 100644 --- a/rfbplayer/rfbplayer.cxx +++ b/rfbplayer/rfbplayer.cxx @@ -766,6 +766,10 @@ void RfbPlayer::calculateScrollBars() { 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) {