]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Python version: xrandr 1.2.0 didn't output a *current modeline, ignore the missing...
authorPhillip Berndt <phillip.berndt@googlemail.com>
Fri, 23 Jan 2015 10:14:21 +0000 (11:14 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Fri, 23 Jan 2015 10:14:21 +0000 (11:14 +0100)
autorandr.py

index da1abee6f625ea6533e16afceeae3188e17607f6..d91d2c8d4be9662b57a9c719a7e170e608eceb07 100755 (executable)
@@ -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"):