Skip to content

Guarantee sending WindowEvent::Resized on window creation? #3192

@dhardy

Description

@dhardy

Testing shows my app always receives WindowEvent::Resized after window creation (tested on Wayland and X11). Great, can I rely on it (avoid setting up the surface until receiving Resized)?

The same applies to ScaleFactorChanged which is received on Wayland but not X11. A guarantee that it will always be sent on start (at least when not 1) would allow simpler app logic.

I don't see any documentation in this regard and haven't checked other platforms, but can make a PR if requested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S - apiDesign and usability

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions