Expose winit always_on_top
Objective
I needed a window which is always on top, to create a overlay app.
Solution
expose the always_on_top property of winit in bevy's WindowDescriptor as a boolean flag
Changelog
Added
- add
WindowDescriptor.always_on_topwhich configures a window to stay on top.
Support for this should probably be also added to Window and WindowCommand so it can be changed at runtime.
I tried this out and it's pretty simple to add and works as expected (on MacOS at least)
Feel free to use this: https://github.com/rparrett/bevy/commit/fd2a706c993ea0702294098fd2e134ae3e1bed21 (but add missing docs and whatnot)
I'm not sure this needs its own example.
I think there's an existing window_properties example?
Feel free to use this: https://github.com/rparrett/bevy/commit/fd2a706c993ea0702294098fd2e134ae3e1bed21 (but add missing docs and whatnot)
will do
I'm not sure this needs its own example.
I think there's an existing window_properties example?
Once support for changing at runtime is in, this could definitely be worked into the window_settings example.
bors r+
Pull request successfully merged into main.
Build succeeded:
- build-and-install-on-iOS
- build-android
- build (macos-latest)
- build (ubuntu-latest)
- build-wasm
- build (windows-latest)
- build-without-default-features (bevy)
- build-without-default-features (bevy_ecs)
- build-without-default-features (bevy_reflect)
- check-compiles
- check-doc
- check-missing-examples-in-docs
- ci
- markdownlint
- run-examples
- run-examples-on-wasm
- run-examples-on-windows-dx12