From 0a3b198aa68a04482726ae1f7553d8768bc69ab2 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 13 Nov 2023 23:05:32 -0800 Subject: [PATCH] panels: Mark panel item status to never take focus away from an active app Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/269 and https://invent.kde.org/plasma/plasma-mobile/-/issues/266 --- containments/panel/package/contents/ui/main.qml | 1 + containments/taskpanel/package/contents/ui/main.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/containments/panel/package/contents/ui/main.qml b/containments/panel/package/contents/ui/main.qml index 58fc6476..344055bd 100644 --- a/containments/panel/package/contents/ui/main.qml +++ b/containments/panel/package/contents/ui/main.qml @@ -23,6 +23,7 @@ import org.kde.notificationmanager as NotificationManager ContainmentItem { id: root Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground + Plasmoid.status: PlasmaCore.Types.PassiveStatus // ensure that the panel never takes focus away from the running app // filled in by the shell (Panel.qml) with the plasma-workspace PanelView property var panel: null diff --git a/containments/taskpanel/package/contents/ui/main.qml b/containments/taskpanel/package/contents/ui/main.qml index 3933f8f9..0b00f4af 100644 --- a/containments/taskpanel/package/contents/ui/main.qml +++ b/containments/taskpanel/package/contents/ui/main.qml @@ -20,6 +20,7 @@ import org.kde.plasma.private.mobileshell.windowplugin as WindowPlugin ContainmentItem { id: root Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground + Plasmoid.status: PlasmaCore.Types.PassiveStatus // ensure that the panel never takes focus away from the running app // filled in by the shell (Panel.qml) with the plasma-workspace PanelView property var panel: null