mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 09:18:07 +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.plasma.core as PlasmaCore
|
||||||
import org.kde.taskmanager as TaskManager
|
import org.kde.taskmanager as TaskManager
|
||||||
|
import org.kde.plasma.private.mobileshell.windowplugin as WindowPlugin
|
||||||
|
|
||||||
pragma Singleton
|
pragma Singleton
|
||||||
|
|
||||||
// Helper component that uses Plasma's tasks model to provide whether a maximized window is showing on the current screen.
|
// Helper component that uses Plasma's tasks model to provide whether a maximized window is showing on the current screen.
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
readonly property bool showingWindow: __internal.count > 0
|
readonly property bool showingWindow: __internal.count > 0 && !WindowPlugin.WindowUtil.isShowingDesktop
|
||||||
|
|
||||||
property var __internal: PlasmaCore.SortFilterModel {
|
property var __internal: PlasmaCore.SortFilterModel {
|
||||||
id: visibleMaximizedWindowsModel
|
id: visibleMaximizedWindowsModel
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue