# 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):