Skip to content

Wayland fullscreen limitations #18556

@xiaoshihou514

Description

@xiaoshihou514

Bevy version

bevy = { version = "0.15.2", features = [
  "dynamic_linking",
  "wayland",
  "jpeg",
  "png",
  "bmp",
  "webp",
] }

[Optional] Relevant system information

  • Fedora Workstation 41
  • interface: 'wl_compositor', version: 6, name: 1
  • KDE plasma 6.3.3
AdapterInfo { name: "NVIDIA GeForce RTX 3050 Ti Laptop GPU", vendor: 4318, device: 9696, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "570.124.04", backend: Vulkan }

What you did

    let default_plugin = DefaultPlugins
        .set(WindowPlugin {
            primary_window: Some(Window {
                mode: bevy::window::WindowMode::BorderlessFullscreen(MonitorSelection::Primary),
                ..default()
            }),
            ..default()
        });

    App::new()
        .add_plugins(default_plugin)
        .run();

What went wrong

BorderlessFullScreen works as intended, however, window fullscreen variants would panic

thread 'main' panicked at .../bevy_winit-0.15.2/src/winit_windows.rs:79:22:
Unable to get monitor.

This is meant to be kept as a record of limitation, as it's apparently a winit limitation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorC-DocsAn addition or correction to our documentationO-LinuxSpecific to the Linux desktop operating systemS-BlockedThis cannot move forward until something else changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions