From 9191164926b772e23a8a4b739102377e0aefec62 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 26 May 2011 14:57:51 +0000 Subject: [PATCH] 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 --- vncviewer/DesktopWindow.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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 } -- 2.39.5