From: Phillip Berndt Date: Wed, 8 Apr 2015 08:13:36 +0000 (+0200) Subject: Detect negative positions X-Git-Tag: 1.0~62 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=98cbc6fd179160430950f7fe768559e06645e0b7 Detect negative positions --- diff --git a/autorandr.py b/autorandr.py index 2a40776..9a677ab 100755 --- a/autorandr.py +++ b/autorandr.py @@ -89,7 +89,7 @@ class XrandrOutput(object): (?Pprimary\ )? # Might be primary screen (?:\s* (?P[0-9]+)x(?P[0-9]+) # Resolution (might be overridden below!) - \+(?P[0-9]+)\+(?P[0-9]+)\s+ # Position + \+(?P-?[0-9]+)\+(?P-?[0-9]+)\s+ # Position (?:\(0x[0-9a-fA-F]+\)\s+)? # XID (?P(?:normal|left|right|inverted))\s+ # Rotation (?:(?PX\ and\ Y|X|Y)\ axis)? # Reflection