]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed the bug with wrong window resizing when user maximezes
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Tue, 15 Mar 2005 16:34:57 +0000 (16:34 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Tue, 15 Mar 2005 16:34:57 +0000 (16:34 +0000)
the main window.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@244 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/rfbplayer.cxx

index a9931cc6d9098495c45cc830b0b71e448218b2a0..5fb5b16119d01972a8da94dfd1b6bc475eb02b0e 100644 (file)
@@ -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) {