From ccaf0210d1cb7b9daaf4ddd71a2fa3753661d417 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Tue, 27 Dec 2022 16:00:10 +0100 Subject: [PATCH] Ignore critical notifications in window heap effects We filter out regular notifications, but critical notifications are their own window type, so we need to explicitly filter them too BUG: 463437 --- src/effects/desktopgrid/qml/DesktopView.qml | 3 ++- src/effects/overview/qml/ScreenView.qml | 3 ++- src/effects/windowview/qml/main.qml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/effects/desktopgrid/qml/DesktopView.qml b/src/effects/desktopgrid/qml/DesktopView.qml index b51b11d377..f27a5db11c 100644 --- a/src/effects/desktopgrid/qml/DesktopView.qml +++ b/src/effects/desktopgrid/qml/DesktopView.qml @@ -124,7 +124,8 @@ FocusScope { clientModel: desktopView.clientModel windowType: ~KWinComponents.ClientFilterModel.Dock & ~KWinComponents.ClientFilterModel.Desktop & - ~KWinComponents.ClientFilterModel.Notification + ~KWinComponents.ClientFilterModel.Notification & + ~KWinComponents.ClientFilterModel.CriticalNotification } delegate: WindowHeapDelegate { windowHeap: heap diff --git a/src/effects/overview/qml/ScreenView.qml b/src/effects/overview/qml/ScreenView.qml index 84176594ad..71b55a768e 100644 --- a/src/effects/overview/qml/ScreenView.qml +++ b/src/effects/overview/qml/ScreenView.qml @@ -247,7 +247,8 @@ FocusScope { minimizedWindows: !effect.ignoreMinimized windowType: ~KWinComponents.ClientFilterModel.Dock & ~KWinComponents.ClientFilterModel.Desktop & - ~KWinComponents.ClientFilterModel.Notification + ~KWinComponents.ClientFilterModel.Notification & + ~KWinComponents.ClientFilterModel.CriticalNotification } delegate: WindowHeapDelegate { windowHeap: heap diff --git a/src/effects/windowview/qml/main.qml b/src/effects/windowview/qml/main.qml index 2e44d3f0e7..5159340e69 100644 --- a/src/effects/windowview/qml/main.qml +++ b/src/effects/windowview/qml/main.qml @@ -200,7 +200,8 @@ Item { minimizedWindows: !effect.ignoreMinimized windowType: ~KWinComponents.ClientFilterModel.Dock & ~KWinComponents.ClientFilterModel.Desktop & - ~KWinComponents.ClientFilterModel.Notification + ~KWinComponents.ClientFilterModel.Notification & + ~KWinComponents.ClientFilterModel.CriticalNotification } delegate: WindowHeapDelegate { windowHeap: heap