-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - Apply WindowDescriptor
settings in all modes
#6934
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Good question :) |
bors r+ |
# 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>
Pull request successfully merged into main. Build succeeded:
|
WindowDescriptor
settings in all modesWindowDescriptor
settings in all modes
# 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>
# 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>
Objective
Some settings were only applied in windowed mode.
Fix the issue in #6933
Solution
Always apply the settings.