Don't resize the maximized desktop window when vncviewer change the scale
factor.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2239 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx
index ab5f580..31018d1 100644
--- a/win/vncviewer/DesktopWindow.cxx
+++ b/win/vncviewer/DesktopWindow.cxx
@@ -1019,7 +1019,7 @@
   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);
 }