resolution: Fix truncation of drm modes. Closes #1639

This commit is contained in:
Dylan Araps 2021-06-11 05:56:42 +00:00
parent 64dd7b68ef
commit 7de6bb8d2c

View file

@ -3047,7 +3047,8 @@ get_resolution() {
;;
esac
resolution="${resolution%,*}"
resolution="${resolution%%,}"
resolution="${resolution%%, }"
[[ -z "${resolution/x}" ]] && resolution=
}