]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Detect negative positions
authorPhillip Berndt <phillip.berndt@googlemail.com>
Wed, 8 Apr 2015 08:13:36 +0000 (10:13 +0200)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Wed, 8 Apr 2015 08:13:36 +0000 (10:13 +0200)
autorandr.py

index 2a407760c166b1725f7324c7ee10a98ecf007b12..9a677ab5c47a0cc691e0a473359d37f025a1f7df 100755 (executable)
@@ -89,7 +89,7 @@ class XrandrOutput(object):
         (?P<primary>primary\ )?                                                         # Might be primary screen
         (?:\s*
             (?P<width>[0-9]+)x(?P<height>[0-9]+)                                        # Resolution (might be overridden below!)
-            \+(?P<x>[0-9]+)\+(?P<y>[0-9]+)\s+                                           # Position
+            \+(?P<x>-?[0-9]+)\+(?P<y>-?[0-9]+)\s+                                       # Position
             (?:\(0x[0-9a-fA-F]+\)\s+)?                                                  # XID
             (?P<rotate>(?:normal|left|right|inverted))\s+                               # Rotation
             (?:(?P<reflect>X\ and\ Y|X|Y)\ axis)?                                       # Reflection