From af2258b0b400a66860fb80394dba1979cb1e1e37 Mon Sep 17 00:00:00 2001 From: Ruby Mamistvalove Date: Sun, 12 Oct 2025 21:33:23 +0300 Subject: [PATCH] fix(mainwindow): frameless window initialization improvements --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4c33b7c3..1c6c6f2b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -358,6 +358,10 @@ void MainWindow::setupMainWindow() flags = Qt::Window; // cppcheck-suppress redundantInitialization // false positive # endif setWindowFlags(flags); +#else +# if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0) + setAttribute(Qt::WA_ContentsMarginsRespectsSafeArea, false); +# endif #endif #if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)