Fix sending monitor layout info when xrandr has one output disconnected

Signed-off-by: WetwareLabs <marcus@wetwa.re>
This commit is contained in:
WetwareLabs 2016-09-29 14:11:33 +02:00 committed by Wojtek Porczyk
parent 7af3f4b19a
commit cedd822735

View File

@ -37,7 +37,8 @@ REGEX_OUTPUT = re.compile(r'''
(?x) # ignore whitespace
^ # start of string
(?P<output>[A-Za-z0-9\-]*)[ ] # LVDS VGA etc
(?P<connect>(dis)?connected)[ ]# dis/connected
(?P<connect>(dis)?connected) # dis/connected
([ ]
(?P<primary>(primary)?)[ ]?
(( # a group
(?P<width>\d+)x # either 1024x768+0+0
@ -51,6 +52,7 @@ REGEX_OUTPUT = re.compile(r'''
(?P<height_mm>\d+)mm
)?
.* # ignore rest of line
)? # everything after (dis)connect is optional
''')