Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1451,6 +1451,14 @@ void Application::checkBandwidthMeterClick() { · 1450 unmodified lines | ||
| 1451 | 1451 | } |
| 1452 | 1452 | |
| 1453 | 1453 | void Application::setFullscreen(bool fullscreen) { |
| 1454 | + if (Menu::getInstance()->isOptionChecked(MenuOption::EnableVRMode)) { | |
| 1455 | + if (fullscreen) { | |
| 1456 | + // Menu show() after hide() doesn't work with Rift VR display so set height instead. | |
| 1457 | + _window->menuBar()->setMaximumHeight(0); | |
| 1458 | + } else { | |
| 1459 | + _window->menuBar()->setMaximumHeight(QWIDGETSIZE_MAX); | |
| 1460 | + } | |
| 1461 | + } | |
| 1454 | 1462 | _window->setWindowState(fullscreen ? (_window->windowState() | Qt::WindowFullScreen) : |
| 1455 | 1463 | (_window->windowState() & ~Qt::WindowFullScreen)); |
| 1456 | 1464 | } |