Skip to content

LayerShellSettings: Replace (u32, u32) size with enum for manual/inherited sizes. #2

@namana-mecha

Description

@namana-mecha

What problem does this solve or what need does it fill?

Currently, the LayerShellSettings size is always inherited from the bevy_window. Manually setting the size in LayerShellSettings has no effect. This limits flexibility and prevents users from specifying a custom size independent of the bevy_window.

We need a mechanism to allow users to specify a fixed size for the layer shell surface while retaining the option to inherit the size from the bevy_window when desired.

What solution would you like?

Modify the size field of LayerShellSettings to be an enum with the following variants:

  • Fixed { width: u32, height: u32 }: Allows users to explicitly set the width and height of the layer shell surface.
  • Inherited: Maintains the current behavior, where the size is inherited from the bevy_window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions