]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Fix check for disconnected monitors (fixes #128)
authorJoseph M Jones <the.tuxster@gmail.com>
Sat, 9 Feb 2019 19:40:07 +0000 (19:40 +0000)
committerJoseph M Jones <the.tuxster@gmail.com>
Sat, 9 Feb 2019 19:43:55 +0000 (19:43 +0000)
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"]: