mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
windowplugin: Ensure that show desktop mode is taken into account
This commit is contained in:
parent
372626b786
commit
763803528d
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue