package wayland
Module Wayland.ClientSource
Connect to a Wayland server and interact with the initial display object.
Client-side connection to Wayland display.
connect transport runs the Wayland protocol over transport (typically created with Unix_transport.connect). It spawns a background thread to handle incoming messages. It returns the new connection and a promise that resolves when the connection ends.
Send a sync message to the server and wait for the reply. This ensures that all previous messages have been received.
wl_display t returns the initial object for the display. You probably want to use Registry.of_display instead.