sway: fallback to legacy DRM interface on virtio
Some time ago, 'WLR_RENDERER=pixman' stopped working properly on virtio. Appears that it only affects the atomic KMS and falling back to the legacy DRM interface was enough to work around. While legacy is a less tested codepath, I don't see any other ways to address that :'(
This commit is contained in:
parent
d414e06ed4
commit
ddf31e44d7
3 changed files with 30 additions and 10 deletions
|
|
@ -41,10 +41,19 @@ chmod +x ${RUN_SCRIPT}
|
|||
|
||||
|
||||
# Set some compatibility variables if we're in a VM
|
||||
if systemd-detect-virt --quiet --vm; then
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
export WLR_RENDERER=pixman
|
||||
fi
|
||||
case $(systemd-detect-virt --vm) in
|
||||
"none"|"")
|
||||
;;
|
||||
"kvm")
|
||||
# WLR_NO_HARDWARE_CURSORS=1 is not needed with legacy DRM interface
|
||||
export WLR_RENDERER=pixman
|
||||
export WLR_DRM_NO_ATOMIC=1
|
||||
;;
|
||||
*)
|
||||
# https://github.com/swaywm/sway/issues/6581
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
;;
|
||||
esac
|
||||
|
||||
sway --config=${CONFIG_FILE}
|
||||
exit_code=$(< ${EXIT_CODE_SAVE})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue