Skip to content

Commit

Permalink
Second line of defence against lock screen window
Browse files Browse the repository at this point in the history
#445

This commit is not necessary, it just makes me sleep better
  • Loading branch information
nikitabobko committed Nov 2, 2024
1 parent 964e5b1 commit 0ab5fde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/AppBundle/GlobalObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 0ab5fde

Please sign in to comment.