kwin: add exception for Spectacle

The "normalWindow" check was added "just in case", since for Spectacle it's also true. Unfortunately it seems there's literally no other reliable way of checking for Spectacle windows other than hardcoding a check for its resourceClass...
This commit is contained in:
p0358
2026-02-20 01:35:20 +01:00
committed by dec05eba
parent d6a64b03e0
commit 2395fbcf69

View File

@@ -48,7 +48,9 @@ function subscribeToWindow(window) {
function updateActiveWindow(window) {
if (!window) return;
if (!window.normalWindow) return;
if (window.resourceName === "gsr-ui" || window.resourceName === "gsr-notify") return; // ignore the overlay and notification
if (window.resourceClass === "org.kde.spectacle") return;
emitActiveWindowUpdate(window);
subscribeToWindow(window);
}