Merge pull request #139 from joseph-jones/master

Fix check for disconnected monitors (fixes #128)
This commit is contained in:
Phillip Berndt 2019-02-17 12:48:15 +01:00 committed by GitHub
commit f923b9588c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ class XrandrOutput(object):
else: else:
edid = "%s-%s" % (XrandrOutput.EDID_UNAVAILABLE, match["output"]) edid = "%s-%s" % (XrandrOutput.EDID_UNAVAILABLE, match["output"])
if not match["width"]: if not match["connected"]:
options["off"] = None options["off"] = None
else: else:
if match["mode_name"]: if match["mode_name"]: