From 7a0423d99deddb45c4dc54815c01b3361e429c3f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 7 May 2024 13:38:20 +0200 Subject: [PATCH] [sway] don't force vulkan on Intel IGP --- wayland/sway/SlackBuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wayland/sway/SlackBuild b/wayland/sway/SlackBuild index 9cf876cc..3399c99c 100755 --- a/wayland/sway/SlackBuild +++ b/wayland/sway/SlackBuild @@ -59,7 +59,7 @@ PKGNAM=${PRGNAM} PATCH=${PATCH:-"no"} if [ "$PATCH" = "yes" ]; then for p in "$CWD"/patches/*.patch; do - patch -p1 < "$p" + patch -p1 < "$p" done PKGVERSION="${PKGVERSION}_patched" fi @@ -203,7 +203,14 @@ echo "sway Starting: \$( date )" unset QT_QPA_PLATFORM -export WLR_RENDERER=vulkan + +# vulklan seems buggy with Intel IGP +if \$(lsmod | grep -q "^i915.*$"); then + export WLR_RENDERER=gles2 +else + export WLR_RENDERER=vulkan +fi + export CLUTTER_BACKEND=wayland export SDL_VIDEODRIVER=wayland export XDG_SESSION_DESKTOP=sway