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

feat(macOS): create window in specific screen(monitor) #745

Open
2 tasks
BillGoldenWater opened this issue Jun 3, 2023 · 0 comments
Open
2 tasks

feat(macOS): create window in specific screen(monitor) #745

BillGoldenWater opened this issue Jun 3, 2023 · 0 comments

Comments

@BillGoldenWater
Copy link
Contributor

BillGoldenWater commented Jun 3, 2023

Is your feature request related to a problem? Please describe.
when restore a window that closed in a non primary monitor, it will failed to position the window, unless delay the reposition process, which would cause window display on it’s default position before the delayed reposition

Describe the solution you'd like
psudocode:

let screen = all_screen().iter().find(/* compare with last stored screen info */);

if let Some(screen) = screen {
  WindowBuilder::new()
    .with_screen(screen)
    .position(/* last stored position */)
    .build()
}

Describe alternatives you've considered
nope

Would you want to assign yourself to implement this feature?

  • Yes
  • No

Additional context
init window with NSScreen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📬Proposal
Development

No branches or pull requests

1 participant