Skip to content

allow Multi-Monitor window managment via MonitorIndex - #3450

Open
acul009 wants to merge 1 commit into
iced-rs:masterfrom
acul009:master
Open

acul009 wants to merge 1 commit into
iced-rs:masterfrom
acul009:master

Conversation

@acul009

@acul009 acul009 commented Sep 5, 2026

Copy link
Copy Markdown

This introduces PositionOnMonitor and MonitorIndex so you can control which monitor your windows will spawn on or is moved to. I tried to implement it in the way you suggested.

It adds the window::list_monitors task to query all available monitors.

I've also changed the existing functions to e.g. get the resolution of the monitor to also use the new Monitor objects.
There a bunch of other changes to try and integrate this api into all the monitor and position interactions.

I've also implemented the needed From traits, so migration should be relatively simple.

This does break backwards compatibility, also in part because I renamed functions to signal their different use now.

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.

1 participant