bevyengine / bevyengine/bevy

Allow user to set what monitor a window is on through the `OnMonitor` Relationship

Open
#24,471 2 comments 0 reactions 0 assignees View on GitHub
A-Windowing C-Feature D-Complex S-Ready-For-Implementation X-Uncontroversial
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?
This provides a nice little API that makes it easy to just move the Window to a Monitor through the `OnMonitor` Relationship, which might be expected.

## What solution would you like?
Ideally inserting or otherwise changing the `OnMonitor` Relationship to point to a different Monitor then the Window should be moved there.

## What alternative(s) have you considered?
We could just not do this.

## Additional context
I was asked if my crate (that this functionality is based on) is Read Only or if updating the relationship would update the Monitor the Window is on, and while there is an existing API doing this could allow for some simpler code when doing something like a Settings Menu, as you're already needing to use the Relationship there anyways.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.