Function wayland_client::core::default_display
[−]
[src]
pub fn default_display() -> Option<Display>
Tries to connect to the default wayland display.
If the WAYLAND_DISPLAY
environment variable is set, it will
be used. Otherwise it defaults to "wayland-0"
.
Will return None
if either:
- the library
libwayland-client.so
is not available (if featuredlopen
is activated) - the connexion to the wayland server could not be done.