Support multiple displays under wayland (#1596)

This commit is contained in:
Zach Dykstra 2020-11-04 22:06:28 -06:00 committed by GitHub
parent ac6f6a1ce4
commit 56c8d7e0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2991,9 +2991,9 @@ get_resolution() {
elif [[ -d /sys/class/drm ]]; then elif [[ -d /sys/class/drm ]]; then
for dev in /sys/class/drm/*/modes; do for dev in /sys/class/drm/*/modes; do
read -r resolution _ < "$dev" read -r single_resolution _ < "$dev"
[[ $resolution ]] && break [[ $single_resolution ]] && resolution="${single_resolution}, ${resolution}"
done done
fi fi
;; ;;