summaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-05-26 14:57:51 +0000
committerPierre Ossman <ossman@cendio.se>2011-05-26 14:57:51 +0000
commit9191164926b772e23a8a4b739102377e0aefec62 (patch)
treee9bc7b2bea22ddb568100e7956090cb63cfc1211 /vncviewer/DesktopWindow.cxx
parent105738ce5db4da961280e19bcdab31fc78861ae9 (diff)
downloadtigervnc-9191164926b772e23a8a4b739102377e0aefec62.tar.gz
tigervnc-9191164926b772e23a8a4b739102377e0aefec62.zip
Toggle full screen based on changes in the options window.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4452 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r--vncviewer/DesktopWindow.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index f63b16ea..7a5b4c36 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -301,5 +301,10 @@ void DesktopWindow::handleOptions(void *data)
self->grabKeyboard();
else
self->ungrabKeyboard();
+
+ if (fullScreen && !self->fullscreen_active())
+ self->fullscreen();
+ else if (!fullScreen && self->fullscreen_active())
+ self->fullscreen_off();
#endif
}