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
diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx
index d4bc3e7..f96c7e4 100644
--- a/win/vncviewer/DesktopWindow.cxx
+++ b/win/vncviewer/DesktopWindow.cxx
@@ -301,6 +301,8 @@
void DesktopWindow::setShowToolbar(bool st)
{
showToolbar = st;
+ if (fullscreenActive) return;
+
RECT r;
GetWindowRect(handle, &r);
bool maximized = GetWindowLong(handle, GWL_STYLE) & WS_MAXIMIZE;