From 763803528d4132622b64825e3430c3648da66c6b Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Fri, 31 Mar 2023 22:20:56 -0700 Subject: [PATCH] windowplugin: Ensure that show desktop mode is taken into account --- components/windowplugin/qml/WindowMaximizedTracker.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/windowplugin/qml/WindowMaximizedTracker.qml b/components/windowplugin/qml/WindowMaximizedTracker.qml index 3b3ebee0..f26bcc4c 100644 --- a/components/windowplugin/qml/WindowMaximizedTracker.qml +++ b/components/windowplugin/qml/WindowMaximizedTracker.qml @@ -5,13 +5,14 @@ import QtQuick import org.kde.plasma.core as PlasmaCore import org.kde.taskmanager as TaskManager +import org.kde.plasma.private.mobileshell.windowplugin as WindowPlugin pragma Singleton // Helper component that uses Plasma's tasks model to provide whether a maximized window is showing on the current screen. QtObject { - readonly property bool showingWindow: __internal.count > 0 + readonly property bool showingWindow: __internal.count > 0 && !WindowPlugin.WindowUtil.isShowingDesktop property var __internal: PlasmaCore.SortFilterModel { id: visibleMaximizedWindowsModel