wayland: Try to open the display even if XDG_RUNTIME_DIR is unset
authorLudovico de Nittis <ludovico.denittis@collabora.com>
Mon, 27 Mar 2023 09:53:57 +0000 (11:53 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 1 Apr 2023 00:21:02 +0000 (20:21 -0400)
commit5303bbf66aad3b985b0e568dd20bf2ffc2c4d4a4
tree56ebba7fd4a63d26077f4a361cd4ccbf070e89ea
parentc2f432b6dfd82bc390115f26da77d27674c02219
wayland: Try to open the display even if XDG_RUNTIME_DIR is unset

Since Wayland 1.15, it is now possible to use absolute paths in
"WAYLAND_DISPLAY".
In that scenario, having a valid "XDG_RUNTIME_DIR" is not a requirement
anymore.

For this reason we remove the "XDG_RUNTIME_DIR" check and we let
`wl_display_connect()` decide if our environment is correct.

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
gdk/wayland/gdkdisplay-wayland.c