summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-06-13 07:21:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-06-13 07:21:40 +0000
commit3e716b2bfe7a907639cefa3bba8c493e60ac530b (patch)
tree706fce36a347eba6b68a171bb6ced646249cda64 /lib
parent714abb7ede1ae6c03e396ac4a4ac72a1cea90f47 (diff)
downloaddrakx-kbd-mouse-x11-3e716b2bfe7a907639cefa3bba8c493e60ac530b.tar
drakx-kbd-mouse-x11-3e716b2bfe7a907639cefa3bba8c493e60ac530b.tar.gz
drakx-kbd-mouse-x11-3e716b2bfe7a907639cefa3bba8c493e60ac530b.tar.bz2
drakx-kbd-mouse-x11-3e716b2bfe7a907639cefa3bba8c493e60ac530b.tar.xz
drakx-kbd-mouse-x11-3e716b2bfe7a907639cefa3bba8c493e60ac530b.zip
- XFdrake:
o ensure we don't drop non-main "Device" (when modifying "Options", #41410)
Diffstat (limited to 'lib')
-rw-r--r--lib/Xconfig/card.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Xconfig/card.pm b/lib/Xconfig/card.pm
index c972a31..e121339 100644
--- a/lib/Xconfig/card.pm
+++ b/lib/Xconfig/card.pm
@@ -36,7 +36,7 @@ my @xfree4_Drivers = ((arch() =~ /^sparc/ ? qw(sunbw2 suncg14 suncg3 suncg6 sunf
sub from_raw_X {
my ($raw_X) = @_;
- my $device = $raw_X->get_device or die "no card configured";
+ my ($device, @cards) = $raw_X->get_devices or die "no card configured";
my $card = {
use_DRI_GLX => eval { any { /dri/ } $raw_X->get_modules },
@@ -45,6 +45,7 @@ sub from_raw_X {
if_($device->{Driver} eq 'nvidia',
DriverVersion =>
readlink("$::prefix/etc/alternatives/gl_conf") =~ m!nvidia(.*)/! ? $1 : '97xx'),
+ if_(@cards, cards => \@cards),
};
add_to_card__using_Cards($card, $card->{BoardName});
$card;