Switch icon indicating copy to clipboard operation
Switch copied to clipboard

Isolate dependance on NSScreen

Open numist opened this issue 11 years ago • 1 comments

Switch's model objects call out to NSScreen a lot to accomplish such things as figuring out their non-flipped geometry and grouping by Space, and the dependency is inherently mutable and unsafe. Window objects should fetch screen layout information and store it along with the rest of their immutable data. This will make it much easier to test things in the future.

numist avatar Oct 07 '14 03:10 numist

The real problem here is that isolation will introduce an effective cache that needs to be invalidated (reflowing the interface) on display layout changes.

numist avatar Apr 13 '21 07:04 numist