diff options
author | Pierre Ossman <ossman@cendio.se> | 2009-04-09 12:00:08 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2009-04-09 12:00:08 +0000 |
commit | 0df7c7a482c7f09ec29bf1920274f8d14ad239d0 (patch) | |
tree | 24bd349142d3e0fcae211a591fd984ccc5a4263a /win/vncviewer | |
parent | 0eda542fa6ac43db5e488ad1bc94a87666048ece (diff) | |
download | tigervnc-0df7c7a482c7f09ec29bf1920274f8d14ad239d0.tar.gz tigervnc-0df7c7a482c7f09ec29bf1920274f8d14ad239d0.zip |
Create the system menu entries earlier to play nice with any system-wide
additions.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3765 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/vncviewer')
-rw-r--r-- | win/vncviewer/CConn.cxx | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/win/vncviewer/CConn.cxx b/win/vncviewer/CConn.cxx index d5eadc4c..5be15e86 100644 --- a/win/vncviewer/CConn.cxx +++ b/win/vncviewer/CConn.cxx @@ -723,21 +723,6 @@ void CConn::serverInit() { // Show the window window = new DesktopWindow(this); - window->setName(cp.name()); - window->setShowToolbar(options.showToolbar); - window->setSize(cp.width, cp.height); - applyOptions(options); - - // Save the server's current format - serverDefaultPF = cp.pf(); - - // Calculate the full-colour format to use - calculateFullColourPF(); - - // Request the initial update - vlog.info("requesting initial update"); - formatChange = encodingChange = requestUpdate = true; - requestNewUpdate(); // Update the window menu HMENU wndmenu = GetSystemMenu(window->getHandle(), FALSE); @@ -758,6 +743,23 @@ void CConn::serverInit() { AppendMenu(wndmenu, MF_STRING, IDM_OPTIONS, _T("&Options...")); AppendMenu(wndmenu, MF_STRING, IDM_INFO, _T("Connection &Info...")); AppendMenu(wndmenu, MF_STRING, IDM_ABOUT, _T("&About...")); + + // Set window attributes + window->setName(cp.name()); + window->setShowToolbar(options.showToolbar); + window->setSize(cp.width, cp.height); + applyOptions(options); + + // Save the server's current format + serverDefaultPF = cp.pf(); + + // Calculate the full-colour format to use + calculateFullColourPF(); + + // Request the initial update + vlog.info("requesting initial update"); + formatChange = encodingChange = requestUpdate = true; + requestNewUpdate(); } void |