mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user