Qt: Don't save window size when entering fullscreen
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Jun 2015 12:38:42 -0700
2 files changed,
5 insertions(+),
2 deletions(-)
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -390,8 +390,10 @@ event->accept();
} void Window::resizeEvent(QResizeEvent*) { - m_config->setOption("height", m_screenWidget->height()); - m_config->setOption("width", m_screenWidget->width()); + if (!isFullScreen()) { + m_config->setOption("height", m_screenWidget->height()); + m_config->setOption("width", m_screenWidget->width()); + } m_config->setOption("fullscreen", isFullScreen()); }