From: Phillip Berndt Date: Fri, 23 Jan 2015 10:14:21 +0000 (+0100) Subject: Python version: xrandr 1.2.0 didn't output a *current modeline, ignore the missing... X-Git-Tag: 1.0~93 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bdf8373bc2b2775d2285f96688907ae46823488c;hp=6442bbe34db640230a9b4543cae0d3d0236da556;p=deb_pkgs%2Fautorandr.git Python version: xrandr 1.2.0 didn't output a *current modeline, ignore the missing information --- diff --git a/autorandr.py b/autorandr.py index da1abee..d91d2c8 100755 --- a/autorandr.py +++ b/autorandr.py @@ -197,7 +197,7 @@ class XrandrOutput(object): options["off"] = None edid = "".join(match["edid"].strip().split()) else: - if "mode_width" in match: + if "mode_width" in match and match["mode_width"]: options["mode"] = "%sx%s" % (match["mode_width"], match["mode_height"]) else: if match["rotate"] not in ("left", "right"):