tmandry / Swindler

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

Consider moving handleScreenChange off main thread #45

Open tmandry opened 5 years ago

tmandry commented 5 years ago

Based on discussion in #44. Trace the performance of this function and/or just move it to another thread.

Since we still have to invoke the Swindler event on the main thread, I was worried about "unnecessary overhead" before, but I think that's negligible for a rare event compared to a potential main thread freeze.