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

spawn new os_window on active screen on macOS #6932

Merged
merged 1 commit into from
Dec 22, 2023
Merged

spawn new os_window on active screen on macOS #6932

merged 1 commit into from
Dec 22, 2023

Conversation

FelixKratz
Copy link
Contributor

@FelixKratz FelixKratz commented Dec 20, 2023

This fixes the bug discussed in #6930.

@FelixKratz FelixKratz changed the title spawn new os_window on active screen spawn new os_window on active screen on macOS Dec 20, 2023
@kovidgoyal
Copy link
Owner

Rather than disabling cascading which would break expected behavior on this platform why not check if the cascade point is on the same monitor and only use it then?

@FelixKratz
Copy link
Contributor Author

FelixKratz commented Dec 21, 2023

The newest commit checks if the cascade point is on the same screen, if not, it is reset to the CGPointZero, such that cascading of further windows will work on that monitor (see https://developer.apple.com/documentation/appkit/nswindow/1419392-cascadetopleftfrompoint?language=objc).

fix wording

reset cascade point to zero point
@kovidgoyal kovidgoyal merged commit 7c0cb54 into kovidgoyal:master Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants