tmandry / Swindler

macOS window management library for Swift
https://tmandry.github.io/Swindler/docs/main/
MIT License
695 stars 66 forks source link

Doesn't keep track of newly opened applications #5

Closed flocked closed 7 years ago

flocked commented 8 years ago

Swindler doesn't keep track of new opened applications. The "runningApplications" in State isn't updating and things like "frontmostApplication" can be nil if the application is launched after Swindlers initialization.

To reproduce: Open the included SwindlerExample. Open another app. "FrontmostApplicationChangedEvent" gets called but frontmostApplication is nil.