From be3e96937c2d073e47178502cc3620e208761ece Mon Sep 17 00:00:00 2001 From: george82 Date: Sat, 10 Jun 2006 12:58:41 +0000 Subject: [PATCH] Fixed the bug with the main window resizing (don't take the toolbar height into calculation of the main window size). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@637 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/vncviewer/DesktopWindow.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx index d4bc3e76..f96c7e44 100644 --- a/win/vncviewer/DesktopWindow.cxx +++ b/win/vncviewer/DesktopWindow.cxx @@ -301,6 +301,8 @@ void DesktopWindow::setFullscreen(bool fs) { void DesktopWindow::setShowToolbar(bool st) { showToolbar = st; + if (fullscreenActive) return; + RECT r; GetWindowRect(handle, &r); bool maximized = GetWindowLong(handle, GWL_STYLE) & WS_MAXIMIZE; -- 2.39.5