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
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index f63b16e..7a5b4c3 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -301,5 +301,10 @@
self->grabKeyboard();
else
self->ungrabKeyboard();
+
+ if (fullScreen && !self->fullscreen_active())
+ self->fullscreen();
+ else if (!fullScreen && self->fullscreen_active())
+ self->fullscreen_off();
#endif
}