]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
fix: move all output at once as they are enabled
authorMathis Raguin <mathis@cri.epita.fr>
Tue, 28 May 2019 20:08:25 +0000 (22:08 +0200)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Tue, 31 Dec 2019 10:02:31 +0000 (11:02 +0100)
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
autorandr.py

index 433cdc6dfdb683ef773abff9ddae2f628cab2799..1c4377dfbcff02ae1b3312696d8a6f9274ffbbf6 100755 (executable)
@@ -818,10 +818,9 @@ def apply_configuration(new_configuration, current_configuration, dry_run=False)
 
     # Fix all outputs if no 0x0 output has been found as xrandr will shift them
     if require_xrandr_fix:
-        for index in range(0, len(enable_outputs), 2):
-            argv = base_argv + list(chain.from_iterable(enable_outputs[index:index + 2]))
-            if call_and_retry(argv, dry_run=dry_run) != 0:
-                raise AutorandrException("Command failed: %s" % " ".join(argv))
+        argv = base_argv + list(chain.from_iterable(enable_outputs))
+        if call_and_retry(argv, dry_run=dry_run) != 0:
+            raise AutorandrException("Command failed: %s" % " ".join(argv))
 
 
 def is_equal_configuration(source_configuration, target_configuration):