diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index fe2b599..6562f89 100755 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -588,9 +588,7 @@ void fgOSFullScreen() * "false" - even when a single window is display in fullscreen */ //bool isFullScreen = x == 0 && y == 0 && width == (int)screenWidth && height == (int)screenHeight; - //bool isFullScreen = !window->getWindowDecoration(); - - bool isFullScreen = false; + bool isFullScreen = !window->getWindowDecoration(); SG_LOG(SG_VIEW, SG_DEBUG, "Toggling fullscreen. Previous window rectangle (" << x << ", " << y << ") x (" << width << ", " << height << "), fullscreen: " << isFullScreen << ", number of screens: " << wsi->getNumScreens()); if (isFullScreen) {