Skip to content

Preset window dimensions are really messy (under wayland) #2230

@justDeeevin

Description

@justDeeevin

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Defining the size of the window using settings.window.size is wildly inconsistent under wayland. With settings.window.resizable set to true, the width is the number of pixels passed in, but the height has ~35 pixels added to it. With resizable set to false, both the height and width are ~20 pixels extra. I measured this as best I could with the apt package screenruler's graphical screen ruler. These numbers aren't 100% precise but they are consistent.

What is the expected behavior?

When I pass dimensions into the settings.window.size setting, the window should be created with those dimensions.

Version

crates.io release

Operating System

Linux

Do you have any log output?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions