From 98cbc6fd179160430950f7fe768559e06645e0b7 Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Wed, 8 Apr 2015 10:13:36 +0200 Subject: [PATCH] Detect negative positions --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2