Class wl_display
A wl_display consist of two parts: The wl_display as defined in the wayland.xml protocol and the one that handles the connection to the wayland compositor.
In here only the connection handling aspect is documented.
Methods
wl_display:roundtrip () | Work off all staging events through their respective event listeners |
wl_display:disconnect () | Disconnect from the wayland compositor |
wl_display:connect (name) | Connect to an existing wayland compositor |
Methods
- wl_display:roundtrip ()
-
Work off all staging events through their respective event listeners
Returns:
-
wl_display
Self
- wl_display:disconnect ()
-
Disconnect from the wayland compositor
Returns:
-
wl_display
self
- wl_display:connect (name)
-
Connect to an existing wayland compositor
Parameters:
- name
string
If
nil
thenXDG_RUNTIME_DIR
andWAYLAND_DISPLAY
will be concatenated
Returns:
-
optional wl_display
A wl_display on success and
nil
on errorSee also:
Usage:
local display = wau.wl_display.connect()
- name
string
If