Skip to content

Occluded change must be synced with winit #3442

@kchibisov

Description

@kchibisov

State change on Wayland, demands confirmation in form of ack + commit, commit usually done when drawing, however when using Vsync extension drawing will block indefinitely when you'll have Occluded event.

To solve that winit must have a way to commit on-behalf of the users, however doing so unconditionally will break clients and may result in desyncs, but asking them to draw and then send Occluded is also not an option, thus Occluded itself should ask whether the user stopped their rendering/continued their rendering, thus on stop winit can do wl_surface::commit.

This issue is also kind of present with other state changes, and not really specific to occluded, however occluded is the only where it really matters.

Until it's resolved it winit will remove the handling of this event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - waylandAffects the Wayland backend, or generally free Unix platforms

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions