From: Pierre Ossman Date: Thu, 26 May 2011 14:57:51 +0000 (+0000) Subject: Toggle full screen based on changes in the options window. X-Git-Tag: v1.1.90~326 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9191164926b772e23a8a4b739102377e0aefec62;p=tigervnc.git 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 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 }