From 2395fbcf6991de20888e069dd0cb695551106ef5 Mon Sep 17 00:00:00 2001 From: p0358 Date: Fri, 20 Feb 2026 01:35:20 +0100 Subject: [PATCH] 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... --- tools/gsr-kwin-helper/gsrkwinhelper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/gsr-kwin-helper/gsrkwinhelper.js b/tools/gsr-kwin-helper/gsrkwinhelper.js index 4135e1d..76dc300 100644 --- a/tools/gsr-kwin-helper/gsrkwinhelper.js +++ b/tools/gsr-kwin-helper/gsrkwinhelper.js @@ -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); }