summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Xconfig/card.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Xconfig/card.pm b/lib/Xconfig/card.pm
index 4575414..e6054ce 100644
--- a/lib/Xconfig/card.pm
+++ b/lib/Xconfig/card.pm
@@ -104,7 +104,10 @@ sub probe() {
} else {
internal_error();
}
- $card;
+ #dual head ATI card have a dummy DISPLAY_OTHER pci device because it
+ #was needed by Win2000, filter those out because we don't want to
+ #behave as if there were 2 video cards in the system in such cases
+ ($_->{'media_type'} eq 'DISPLAY_VGA')?$card:();
} @c;
if (@cards >= 2 && $cards[0]{card_name} eq $cards[1]{card_name} && $cards[0]{card_name} eq 'Intel 830 - 965') {