mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-28 17:46:27 +00:00
[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:
parent
b8bf980a29
commit
cf3e816603
@ -19,14 +19,14 @@ function(add_displayserver name)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Add/remove displayservers here!
|
# Add/remove displayservers here!
|
||||||
if (ENABLE_X11)
|
|
||||||
add_displayserver(X11)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (ENABLE_WAYLAND)
|
if (ENABLE_WAYLAND)
|
||||||
add_displayserver(Wayland)
|
add_displayserver(Wayland)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_X11)
|
||||||
|
add_displayserver(X11)
|
||||||
|
endif()
|
||||||
|
|
||||||
# SDL must be last as it's the fallback implemntation
|
# SDL must be last as it's the fallback implemntation
|
||||||
add_displayserver(SDL)
|
add_displayserver(SDL)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user