summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-22 13:40:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-22 13:40:52 +0000
commitee7d2bb5fecbc6d8874809cbcb6d5f6da8e02f60 (patch)
tree23f981946e4da4288501efe0b454d5714370b566
parent9a69bb42e894a59f0af533851a3bc8e1ef792b2d (diff)
downloaddrakx-backup-do-not-use-ee7d2bb5fecbc6d8874809cbcb6d5f6da8e02f60.tar
drakx-backup-do-not-use-ee7d2bb5fecbc6d8874809cbcb6d5f6da8e02f60.tar.gz
drakx-backup-do-not-use-ee7d2bb5fecbc6d8874809cbcb6d5f6da8e02f60.tar.bz2
drakx-backup-do-not-use-ee7d2bb5fecbc6d8874809cbcb6d5f6da8e02f60.tar.xz
drakx-backup-do-not-use-ee7d2bb5fecbc6d8874809cbcb6d5f6da8e02f60.zip
use Protocol IMPS/2 when ExplorerPS/2 is asked for (since ExplorerPS/2 doesn't work in xfree3)
-rw-r--r--perl-install/Xconfig/xfree3.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/Xconfig/xfree3.pm b/perl-install/Xconfig/xfree3.pm
index d3a258138..9235f8f96 100644
--- a/perl-install/Xconfig/xfree3.pm
+++ b/perl-install/Xconfig/xfree3.pm
@@ -51,6 +51,16 @@ sub new_mouse_sections {
}
}
+sub set_mice {
+ my ($raw_X, @mice) = @_;
+ @mice = map {
+ my %h = %$_;
+ put_in_hash(\%h, { Protocol => 'IMPS/2', ZAxisMapping => '4 5' }) if $h{Protocol} eq 'ExplorerPS/2';
+ \%h;
+ } @mice;
+ $raw_X->SUPER::set_mice(@mice);
+}
+
sub set_wacoms {
my ($raw_X, @wacoms) = @_;