[frameworks/kconfig] src/qml: Revert "kwindowstatesaverquick: Do not force-show windows"

Nate Graham <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 31dd5c79f40af792387ee6ecfb613d2aa8055a67 by Nate Graham.
Committed on 23/07/2026 at 13:42.
Pushed by ngraham into branch 'master'.

Revert "kwindowstatesaverquick: Do not force-show windows"

This reverts commit 9c204933c6438395d8a34f61c69c932c4b94ff5b.

Unfortunately, it broke the "remember window maximization" feature.
Apparently the "oddities in QtQuick window visibility handling"
mentioned in the comment are still present.

BUG: 522205
FIXED-IN: 6.29

M  +1    -1    src/qml/kwindowstatesaverquick.cpp

https://invent.kde.org/frameworks/kconfig/-/commit/31dd5c79f40af792387ee6ecfb613d2aa8055a67

diff --git a/src/qml/kwindowstatesaverquick.cpp b/src/qml/kwindowstatesaverquick.cpp
index 6de40a8c..893a925b 100644
--- a/src/qml/kwindowstatesaverquick.cpp
+++ b/src/qml/kwindowstatesaverquick.cpp
@@ -33,7 +33,7 @@ void KWindowStateSaverQuick::componentComplete()
     // If we do not set the window visible now, then our window state is
     // overwritten during QQuickWindowQmlImpl::setWindowVisibility() because
     // QQuickWindow is AutomaticVisibility by default.
-    if (window->windowState() == Qt::WindowMaximized && window->isVisible()) {
+    if (window->windowState() == Qt::WindowMaximized) {
         window->setVisibility(QWindow::Visibility::Maximized);
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.