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

[Merged by Bors] - Apply WindowDescriptor settings in all modes #6934

Conversation

tim-blackbird
Copy link
Contributor

Objective

Some settings were only applied in windowed mode.
Fix the issue in #6933

Solution

Always apply the settings.

Copy link
Member

@NiklasEi NiklasEi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, just one question, since I currently cannot test this myself:
What does borderless fullscreen look like with decorations/resizable? Is it no longer borderless?

if let Some(sf) = scale_factor_override {
winit_window_builder.with_inner_size(logical_size.to_physical::<f64>(sf))
} else {
winit_window_builder.with_inner_size(logical_size)
}
}
};

winit_window_builder = winit_window_builder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's not an issue, but it seems to me like most of those settings simply won't do anything when not in windowed mode

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always_on_top and transparent work in all modes.
The resizable and decorations settings will still take effect if the window is switched to windowed mode later on.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right, didn't think about switching mode, makes sense.

@tim-blackbird
Copy link
Contributor Author

tim-blackbird commented Dec 12, 2022

What does borderless fullscreen look like with decorations/resizable? Is it no longer borderless?

Good question :)
It's still borderless. The decorations/resizable settings only take effect in windowed mode.

@hymm hymm added C-Bug An unexpected or incorrect behavior A-Windowing Platform-agnostic interface layer to run your app in S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Dec 12, 2022
@james7132 james7132 added this to the 0.10 milestone Dec 14, 2022
@cart
Copy link
Member

cart commented Dec 16, 2022

bors r+

bors bot pushed a commit that referenced this pull request Dec 16, 2022
# Objective
Some settings were only applied in windowed mode.
Fix the issue in #6933 

# Solution
Always apply the settings.


Co-authored-by: devil-ira <justthecooldude@gmail.com>
@bors bors bot changed the title Apply WindowDescriptor settings in all modes [Merged by Bors] - Apply WindowDescriptor settings in all modes Dec 16, 2022
@bors bors bot closed this Dec 16, 2022
alradish pushed a commit to alradish/bevy that referenced this pull request Jan 22, 2023
# Objective
Some settings were only applied in windowed mode.
Fix the issue in bevyengine#6933 

# Solution
Always apply the settings.


Co-authored-by: devil-ira <justthecooldude@gmail.com>
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective
Some settings were only applied in windowed mode.
Fix the issue in bevyengine#6933 

# Solution
Always apply the settings.


Co-authored-by: devil-ira <justthecooldude@gmail.com>
@tim-blackbird tim-blackbird deleted the fix-window-creation-settings branch March 13, 2023 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants