#Is it possible to disable window maximization?
1 messages ยท Page 1 of 1 (latest)
Relevant:
2yr old comment in the Bevy windowing code stating that winit doesn't yet expose this functionality:
https://github.com/bevyengine/bevy/blob/a1feab939abf8f4c174577aa19fc48cff7ee8dd0/crates/bevy_window/src/window.rs#L338
The functionality implemented in 0.28.6 winit which bevy main should be using now:
https://github.com/rust-windowing/winit/blob/v0.28.6/src/platform_impl/windows/window.rs#L271
Now I'm just wondering if this wasn't yet exposed through Bevy, or if it is and I somehow missed it.
I'm not 100% sure but I feel like this may never have been implemented to Bevy
Define how a window will be created and how it will behave.
But not sure you can deactivate only maximize
Yes I saw that but it removes the whole bar, which prevents minimization, closing and moving the window which of course is not desirable.
Of course
Yea same
@small pond Just checking since I didn't see an issue, maybe you're working on a PR idk, if you want I can write the issue myself ^^
Nah, I just didn't get to it yet, it was almost 2am yesterday ๐ I'll make one now
Okay ^^
thank you ๐
I have an almost ready PR, will submit it tonight probably
I went with exposing all three buttons in an 'enabled_buttons: EnabledButtons' field in Window
You can ping me when submitting so I review it!
Dang, I just saw the 0.11.0 release, was hoping to slide into that ๐
@acoustic moat Here's the PR: https://github.com/bevyengine/bevy/pull/9083
I'll have a look, and potentially test on linux (if I figure out how to get on a fork's branch, do I need to clone the fork? ^^') Thank you ๐
Yeah I just clone the fork