From: george82 Date: Sat, 10 Jun 2006 12:58:41 +0000 (+0000) Subject: Fixed the bug with the main window resizing (don't take X-Git-Tag: v0.0.90~384^2~246 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=be3e96937c2d073e47178502cc3620e208761ece;p=tigervnc.git 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 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;