From cedd822735cf0a7927d9d4e39139f32e19761b62 Mon Sep 17 00:00:00 2001 From: WetwareLabs Date: Thu, 29 Sep 2016 14:11:33 +0200 Subject: [PATCH] Fix sending monitor layout info when xrandr has one output disconnected Signed-off-by: WetwareLabs --- qubes/ext/gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qubes/ext/gui.py b/qubes/ext/gui.py index 68a65ba9..a855d344 100644 --- a/qubes/ext/gui.py +++ b/qubes/ext/gui.py @@ -37,7 +37,8 @@ REGEX_OUTPUT = re.compile(r''' (?x) # ignore whitespace ^ # start of string (?P[A-Za-z0-9\-]*)[ ] # LVDS VGA etc - (?P(dis)?connected)[ ]# dis/connected + (?P(dis)?connected) # dis/connected + ([ ] (?P(primary)?)[ ]? (( # a group (?P\d+)x # either 1024x768+0+0 @@ -51,6 +52,7 @@ REGEX_OUTPUT = re.compile(r''' (?P\d+)mm )? .* # ignore rest of line + )? # everything after (dis)connect is optional ''')