From: Joseph M Jones Date: Sat, 9 Feb 2019 19:40:07 +0000 (+0000) Subject: Fix check for disconnected monitors (fixes #128) X-Git-Tag: 1.8~6^2 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=a64db8d1269af1c76bfa3604de489fe2f6c4a12e Fix check for disconnected monitors (fixes #128) --- diff --git a/autorandr.py b/autorandr.py index 1e980f6..7edf72f 100755 --- a/autorandr.py +++ b/autorandr.py @@ -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"]: