]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
Fix check for disconnected monitors (fixes #128)
[deb_pkgs/autorandr.git] / 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"]: