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
This commit is contained in:
Devin Lin 2023-11-13 23:05:32 -08:00
parent f42724a5f3
commit 0a3b198aa6
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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