summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-27 12:01:39 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-27 12:01:39 +0000
commit1e495ca482a29b8baeb85f56654a3bd3d108b64a (patch)
treee7d72cb0d5d5a312effe15ddd126a1426c323ac1 /perl-install/Xconfig.pm
parent890609937777c4d19b8f447f724dc7f46d797dbf (diff)
downloaddrakx-1e495ca482a29b8baeb85f56654a3bd3d108b64a.tar
drakx-1e495ca482a29b8baeb85f56654a3bd3d108b64a.tar.gz
drakx-1e495ca482a29b8baeb85f56654a3bd3d108b64a.tar.bz2
drakx-1e495ca482a29b8baeb85f56654a3bd3d108b64a.tar.xz
drakx-1e495ca482a29b8baeb85f56654a3bd3d108b64a.zip
added support for two mice (laptop). The second mice is generally PS/2 as
probe can says it is present.
Diffstat (limited to 'perl-install/Xconfig.pm')
-rw-r--r--perl-install/Xconfig.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/Xconfig.pm b/perl-install/Xconfig.pm
index a40251ea5..a98abdccb 100644
--- a/perl-install/Xconfig.pm
+++ b/perl-install/Xconfig.pm
@@ -58,8 +58,10 @@ sub getinfoFromXF86Config {
if ($i =~ /E0/) {
@keyboard{qw(xkb_keymap)} = @c{qw(xkb_keymap)}
if $c{driver} =~ /keyboard/i;
+ @{$mouse{auxmouse}}{qw(XMOUSETYPE device chordmiddle nbuttons)} = @c{qw(XMOUSETYPE device chordmiddle nbuttons)}
+ if $c{driver} =~ /mouse/i && $mouse{device};
@mouse{qw(XMOUSETYPE device chordmiddle nbuttons)} = @c{qw(XMOUSETYPE device chordmiddle nbuttons)}
- if $c{driver} =~ /mouse/i;
+ if $c{driver} =~ /mouse/i && !$mouse{device};
$wacom{$c{device}} = undef
if $c{driver} =~ /wacom/i;
}