aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2021-01-27 00:14:24 +0100
committerGitHub <noreply@github.com>2021-01-27 00:14:24 +0100
commitb75b3f69b783ea7d8919f58d2c86dfa7c9dc6a69 (patch)
treec1033268c660f73490f35fb23e0b10bf856010dc /src
parent4a2806829574c6661c342e60e9430edb6d8b49dd (diff)
Don't save the window size to the config if in full screen (#933)
Diffstat (limited to 'src')
-rw-r--r--src/frontend/qt_sdl/main.cpp7
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!
}