X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=9f302440e89058edd89d63cd7bc56f2cdac0614d;hb=5a6ded231f585c484a4d696ac0e641b480c4b0f8;hp=0d80bc4da2c4164037f8c8c521c98c16a24cd83d;hpb=4db718e759e8a1c8cf40fba21a920669a0ed6b58;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 0d80bc4..9f30244 100755 --- a/autorandr.py +++ b/autorandr.py @@ -257,12 +257,17 @@ class XrandrOutput(object): if xrandr_version() >= Version("1.2"): options.update(self.XRANDR_12_DEFAULTS) options.update(self.options) + if "set" in self.ignored_options: + options = {a: b for a, b in options.items() if not a.startswith("x-prop")} return {a: b for a, b in options.items() if a not in self.ignored_options} @property def filtered_options(self): "Return a dictionary of options without ignored options" - return {a: b for a, b in self.options.items() if a not in self.ignored_options} + options = {a: b for a, b in self.options.items() if a not in self.ignored_options} + if "set" in self.ignored_options: + options = {a: b for a, b in options.items() if not a.startswith("x-prop")} + return options @property def option_vector(self):