Skip to content

Bevy winit::Window hide/show not working #22097

@WilstonOreo

Description

@WilstonOreo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorO-LinuxSpecific to the Linux desktop operating systemS-Needs-TestingTesting must be done before this is safe to merge

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions