Skip to content

Cannot integrate winit wayland backend into existing event loop #4183

@mahkoh

Description

@mahkoh

Description

To integrate, the event loop needs not only the wl_display but also the wl_event_queue used by winit so that it can call wl_display_prepare_read_queue before going to sleep. This requirement is described, for example, here: https://gitlab.freedesktop.org/wayland/wayland/-/blob/6137c8c21383d7ebb92cf3331be56ca0aecccd5d/src/wayland-client.c?page=2#L1863

But winit doesn't expose its wl_event_queue.

Debugging output

Window isn't shown unless you draw

  • I understand that windows aren't shown on Wayland unless I draw and present to them.

Winit version

0.30.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDang, that shouldn't have happenedDS - 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