Commit 36189449 authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

xwayland: search for a render node to use

wl_drm's protocol "device" event provides the path to the DRM device,
which may not be a render node, thus causing Xwayland to fall back to
DRM authentication which may fail if the user has switched to another
VT while Xwayland is starting.

Search for a render node corresponding to the given DRM device and try
to use it instead, as render nodes do not need DRM authentication and
Xwayland can make use of them if it can find one.

Closes: https://bugs.freedesktop.org/108038

Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
parent 03b21250
Pipeline #5094 passed with stage
in 2 minutes and 11 seconds