]> source.dussan.org Git - tigervnc.git/commitdiff
Don't resize the maximized desktop window when vncviewer change the scale
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Tue, 20 Mar 2007 04:31:32 +0000 (04:31 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Tue, 20 Mar 2007 04:31:32 +0000 (04:31 +0000)
factor.

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

win/vncviewer/DesktopWindow.cxx

index ab5f580ac3c7f15ee31262948d5908c959140cdb..31018d124322b6093c5c9f6418f9e88679f3ba49 100644 (file)
@@ -1019,7 +1019,7 @@ void DesktopWindow::setDesktopScale(int scale_) {
   state ^= buffer->isScaling();
   if (state) convertCursorToBuffer();
   if (isToolbarEnabled()) refreshToolbarButtons();
-  if (!isAutoScaling() && !isFullscreen()) resizeDesktopWindowToBuffer();
+  if (!(isAutoScaling() || isFullscreen() || (GetWindowLong(handle, GWL_STYLE) & WS_MAXIMIZE))) resizeDesktopWindowToBuffer();
   printScale();
   InvalidateRect(frameHandle, 0, FALSE);
 }