diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 527a5070..a3b02495 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! }