tmandry / Swindler

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

Size property not immediately consistent with frame #48

Closed tmandry closed 5 years ago

tmandry commented 5 years ago

size should delegate to frame on read, so we only have to update the size once when it changes, but can still atomically update the size.

In between reads, we can fire events where window.frame.size and window.size are observed not to match. (Probably not the end of the world, but not the level of consistency I want for Swindler.)

This is easily fixed with a custom property delegate.