]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Don't fail if xrandr reports negative gamma value
authorJordan Ephron <jephron@nomail.com>
Mon, 23 Dec 2019 03:08:34 +0000 (19:08 -0800)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Tue, 31 Dec 2019 10:05:00 +0000 (11:05 +0100)
autorandr.py

index 13877a3bf60782d68e4c0c0aa61215ffe87e7cc3..b781f4d77b5b91fa565eb14e3e22732c26baeaac 100755 (executable)
@@ -173,7 +173,7 @@ class XrandrOutput(object):
         (?:[\ \t]*tracking\ (?P<tracking>[0-9]+x[0-9]+\+[0-9]+\+[0-9]+))?               # Tracking information
         (?:[\ \t]*border\ (?P<border>(?:[0-9]+/){3}[0-9]+))?                            # Border information
         (?:\s*(?:                                                                       # Properties of the output
-            Gamma: (?P<gamma>(?:inf|[0-9\.: e])+) |                                     # Gamma value
+            Gamma: (?P<gamma>(?:inf|[0-9\.\-: e])+) |                                   # Gamma value
             CRTC:\s*(?P<crtc>[0-9]) |                                                   # CRTC value
             Transform: (?P<transform>(?:[\-0-9\. ]+\s+){3}) |                           # Transformation matrix
             EDID: (?P<edid>\s*?(?:\\n\\t\\t[0-9a-f]+)+) |                               # EDID of the output