summaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2006-05-17 09:39:42 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2006-05-17 09:39:42 +0000
commit318eb4ae6ae936c5f07fdb751b7b7b2b0d58d8ae (patch)
tree8db2c999fbb7486cf26ce6cae79918557ff4ba1d /vncviewer/DesktopWindow.cxx
parentccc653a328a8d6c5de50c682fb66a8c308c90182 (diff)
downloadtigervnc-318eb4ae6ae936c5f07fdb751b7b7b2b0d58d8ae.tar.gz
tigervnc-318eb4ae6ae936c5f07fdb751b7b7b2b0d58d8ae.zip
Toolbar handling restored.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/merge-with-vnc-4.1.1@556 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r--vncviewer/DesktopWindow.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index acddf45e..47ddf7d8 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -177,7 +177,7 @@ FrameClass frameClass;
DesktopWindow::DesktopWindow(Callback* cb)
: buffer(0),
- showToolbar(true),
+ showToolbar(false),
client_size(0, 0, 16, 16), window_size(0, 0, 32, 32),
cursorVisible(false), cursorAvailable(false), cursorInBuffer(false),
systemCursorVisible(true), trackingMouseLeave(false),
@@ -255,7 +255,7 @@ void DesktopWindow::setFullscreen(bool fs) {
MonitorInfo mi(handle);
// Hide the toolbar
- if (showToolbar)
+ if (tb.isVisible())
tb.hide();
SetWindowLong(frameHandle, GWL_EXSTYLE, 0);
@@ -294,6 +294,17 @@ void DesktopWindow::setFullscreen(bool fs) {
setViewportOffset(scrolloffset);
}
+void DesktopWindow::setShowToolbar(bool st)
+{
+ showToolbar = st;
+
+ if (showToolbar && !tb.isVisible()) {
+ tb.show();
+ } else if (!showToolbar && tb.isVisible()) {
+ tb.hide();
+ }
+}
+
void DesktopWindow::setDisableWinKeys(bool dwk) {
// Enable low-level event hooking, so we get special keys directly
if (dwk)