diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2021-01-27 00:14:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 00:14:24 +0100 |
commit | b75b3f69b783ea7d8919f58d2c86dfa7c9dc6a69 (patch) | |
tree | c1033268c660f73490f35fb23e0b10bf856010dc | |
parent | 4a2806829574c6661c342e60e9430edb6d8b49dd (diff) |
Don't save the window size to the config if in full screen (#933)
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 527a507..a3b0249 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -1474,8 +1474,11 @@ void MainWindow::resizeEvent(QResizeEvent* event) int w = event->size().width(); int h = event->size().height(); - Config::WindowWidth = w; - Config::WindowHeight = h; + if (mainWindow != nullptr && !mainWindow->isFullScreen()) + { + Config::WindowWidth = w; + Config::WindowHeight = h; + } // TODO: detect when the window gets maximized! } |