summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/Xconfigurator.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index ab185daf4..8c37dce50 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -176,7 +176,6 @@ sub cardConfigurationAuto() {
foreach (1..$dup) {
my $card = {};
add2hash($card, $orig);
- $card->{screen} = $_ - 1;
push @result, $card;
}
@result;
@@ -221,6 +220,11 @@ sub cardConfiguration(;$$$) {
log::l("found card \"$_->{identifier}\" not supported by XF4, disabling mutli-head support");
$configure_multi_head = undef;
}
+ #- if more than one card use the same BusID, we have to use screen.
+ if ($single_heads{$_->{busid}}) {
+ $single_heads{$_->{busid}}{screen} ||= 0;
+ $_->{screen} = $single_heads{$_->{busid}}{screen} + 1;
+ }
$single_heads{$_->{busid}} = $_;
}
if ($configure_multi_head) {