X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=d36b568485aca6e87a3b61e83ada3be63fe866b6;hb=9156af0f856e4b54489150a151f002ee28baaad5;hp=1e980f6f7c0f7bc8f96999e36f5162a3971f5403;hpb=781b60a19eee577164567adfd7d8b7bd5fa842e1;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 1e980f6..d36b568 100755 --- a/autorandr.py +++ b/autorandr.py @@ -638,8 +638,7 @@ def get_fb_dimensions(configuration): if "off" in output.options or not output.edid: continue # This won't work with all modes -- but it's a best effort. - o_mode = re.search("[0-9]{3,}x[0-9]{3,}", output.options["mode"]).group(0) - o_width, o_height = map(int, o_mode.split("x")) + o_width, o_height = map(int, output.options["mode"].split("x")) if "transform" in output.options: a, b, c, d, e, f, g, h, i = map(float, output.options["transform"].split(",")) w = (g * o_width + h * o_height + i)