From 0ab5fdea88b0ecde5ce5671a69ae76aea84bd540 Mon Sep 17 00:00:00 2001 From: Nikita Bobko Date: Sat, 2 Nov 2024 16:01:31 +0100 Subject: [PATCH] Second line of defence against lock screen window https://github.com/nikitabobko/AeroSpace/issues/445 This commit is not necessary, it just makes me sleep better --- Sources/AppBundle/GlobalObserver.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/AppBundle/GlobalObserver.swift b/Sources/AppBundle/GlobalObserver.swift index c19a896e..e94f795f 100644 --- a/Sources/AppBundle/GlobalObserver.swift +++ b/Sources/AppBundle/GlobalObserver.swift @@ -2,6 +2,10 @@ import AppKit class GlobalObserver { private static func onNotif(_ notification: Notification) { + // Second line of defence against lock screen window. See: gcWindows + if (notification.userInfo?[NSWorkspace.applicationUserInfoKey] as? NSRunningApplication)?.bundleIdentifier == lockScreenAppBundleId { + return + } refreshAndLayout() }