WindowHeapDelegate: If window is set to "skip switcher", skip it from window heap

Without this, windows like xwaylandvideobridge would show up.

BUG: 463542
FIXED-IN: 6.0
This commit is contained in:
Akseli Lahtinen 2023-12-21 16:48:40 +00:00 committed by Nate Graham
parent f661f7bb04
commit b43052af83

View file

@ -30,7 +30,9 @@ Item {
readonly property bool presentOnCurrentDesktop: !window.desktops.length || window.desktops.indexOf(KWinComponents.Workspace.currentDesktop) !== -1 readonly property bool presentOnCurrentDesktop: !window.desktops.length || window.desktops.indexOf(KWinComponents.Workspace.currentDesktop) !== -1
readonly property bool initialHidden: window.minimized || !presentOnCurrentDesktop readonly property bool initialHidden: window.minimized || !presentOnCurrentDesktop
readonly property bool activeHidden: { readonly property bool activeHidden: {
if (windowHeap.showOnly === "activeClass") { if (window.skipSwitcher) {
return true;
} else if (windowHeap.showOnly === "activeClass") {
if (!KWinComponents.Workspace.activeWindow) { if (!KWinComponents.Workspace.activeWindow) {
return true; return true;
} else { } else {