Bevy winit::Window hide/show not working
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
Toggling the visible on Ubuntu 22.04 with Unity and Wayland does not work as expected:
* In Bevy 0.16.1, toggling visible true/false works, but the window level property is lost. If `window_level` is set to `WindowLevel::AlwaysOnTop`
* In Bevy 0.17.3, toggling visible true/false does not work at all.
* In Bevy revision `16409b8`, the window is not shown at all.
See the attached code example to reproduce the issue.
My Rust version: `cargo 1.91.1 (ea2d97820 2025-10-10)`
[bevy_winit_window_bug.zip](https://github.com/user-attachments/files/24130364/bevy_winit_window_bug.zip)
Contributor guide
Research direction
Start by unpacking the attached bevy_winit_window_bug.zip and reproducing the behavior on Ubuntu 22.04 with Unity and Wayland. Compare visibility toggling in Bevy 0.16.1, 0.17.3, and revision 16409b8, including the AlwaysOnTop window level. Done means hide/show works and the window level is preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, ubuntu
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100