Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolate dependance on NSScreen #107

Open
numist opened this issue Oct 7, 2014 · 1 comment
Open

Isolate dependance on NSScreen #107

numist opened this issue Oct 7, 2014 · 1 comment
Milestone

Comments

@numist
Copy link
Owner

numist commented Oct 7, 2014

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 numist added this to the GM milestone Oct 7, 2014
@numist
Copy link
Owner Author

numist commented Apr 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant