Working: Optimized - No polling

This commit is contained in:
Hariharan Mudaliar 2025-10-04 19:23:51 +05:30
commit 97566b754b
4 changed files with 90 additions and 147 deletions

View file

@ -252,6 +252,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
window.orderFrontRegardless()
NotchSpaceManager.shared.notchSpace.windows.insert(window)
return window
}
@ -430,6 +431,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
ScreenRecordingManager.shared.stopMonitoring()
}
}.store(in: &cancellables)
// Note: Polling setting removed - now uses event-driven private API detection only
NotificationCenter.default.addObserver(
self,