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)
committerLudovico de Nittis <ludovico.denittis@collabora.com>
Mon, 27 Mar 2023 09:53:57 +0000 (11:53 +0200)
commitd2672db64881ee41d8a0f7a72f29b574504adfb0
tree81a89c481548118e98d4d5d783a71a30ed12e6ae
parent3008f4babc337ff22d92a2a8720d2be8ce5e9716
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