]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Merge pull request #139 from joseph-jones/master
authorPhillip Berndt <phillip.berndt@googlemail.com>
Sun, 17 Feb 2019 11:48:15 +0000 (12:48 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Feb 2019 11:48:15 +0000 (12:48 +0100)
Fix check for disconnected monitors (fixes #128)

autorandr.py

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