[client] probe Wayland backend first

`$DISPLAY` will be set even in a Wayland session, which causes LG to
initialize itself under Xwayland unless it is explicitly compiled with
`-DENABLE_X11=OFF`.

We could add a Wayland check within the X11 backend, but reordering the
code-generated array seems like a better solution.
This commit is contained in:
Tudor Brindus 2021-01-27 00:43:01 -05:00 committed by Geoffrey McRae
parent b8bf980a29
commit cf3e816603

View File

@ -19,14 +19,14 @@ function(add_displayserver name)
endfunction()
# Add/remove displayservers here!
if (ENABLE_X11)
add_displayserver(X11)
endif()
if (ENABLE_WAYLAND)
add_displayserver(Wayland)
endif()
if (ENABLE_X11)
add_displayserver(X11)
endif()
# SDL must be last as it's the fallback implemntation
add_displayserver(SDL)