Before first use DesktopWindow::setSize() should set the toolbar status because
it using in DesktopWindow::setSize(). It allow correct resize vncviwer desktop
window at run.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2240 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/vncviewer/CConn.cxx b/win/vncviewer/CConn.cxx
index 2341f76..4a9b341 100644
--- a/win/vncviewer/CConn.cxx
+++ b/win/vncviewer/CConn.cxx
@@ -660,6 +660,7 @@
// Show the window
window = new DesktopWindow(this);
window->setName(cp.name());
+ window->setShowToolbar(options.showToolbar);
window->setSize(cp.width, cp.height);
applyOptions(options);