meson-pgo: ‘auto’ now prefers full-headless-sway

This commit is contained in:
Daniel Eklöf 2021-08-31 16:38:12 +02:00
parent 5ab1cd3d64
commit 8ea6c93515
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -43,10 +43,10 @@ case $(${CC-cc} --version) in
esac
if [ ${mode} = auto ]; then
if [ -n "${WAYLAND_DISPLAY+x}" ]; then
mode=full
elif command -v sway > /dev/null; then
if command -v sway > /dev/null; then
mode=full-headless-sway
elif [ -n "${WAYLAND_DISPLAY+x}" ]; then
mode=full
else
mode=partial
fi