From c3eda927a99457af963cdee1aae8d132998b2adc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20de=20l=27Hamaide?= Date: Tue, 18 Nov 2014 17:14:11 +0100 Subject: [PATCH] Update /sim/startup/fullscreen prop at runtime, that way we know the current state of the window --- src/Viewer/fg_os_osgviewer.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index 7ba993218..b925045aa 100644 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -445,6 +445,7 @@ void fgOSFullScreen() // set xsize/ysize properties to adapt GUI planes fgSetInt("/sim/startup/xsize", width); fgSetInt("/sim/startup/ysize", height); + fgSetBool("/sim/startup/fullscreen", !isFullScreen); // reconfigure window window->setWindowDecoration(isFullScreen); -- 2.39.5