mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-31 17:57:10 +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
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue