]> source.dussan.org Git - tigervnc.git/commitdiff
Toggle full screen based on changes in the options window.
authorPierre Ossman <ossman@cendio.se>
Thu, 26 May 2011 14:57:51 +0000 (14:57 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 26 May 2011 14:57:51 +0000 (14:57 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4452 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/DesktopWindow.cxx

index f63b16ea54534283d155542c749a1ec3ae8a8c93..7a5b4c3619d6c6abbfc6e6f24537ebf604999496 100644 (file)
@@ -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
 }