summaryrefslogtreecommitdiffstats
path: root/perl-install/mouse.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-08-31 16:45:13 +0000
committerFrancois Pons <fpons@mandriva.com>2001-08-31 16:45:13 +0000
commit50400a788dfb5dd77f93f471f0c5cecdad42b319 (patch)
treed11317cbd399b150e1737f16f61ae2cddb46a39b /perl-install/mouse.pm
parent6f93d25513c185c98748a267dd203d80291c4224 (diff)
downloaddrakx-50400a788dfb5dd77f93f471f0c5cecdad42b319.tar
drakx-50400a788dfb5dd77f93f471f0c5cecdad42b319.tar.gz
drakx-50400a788dfb5dd77f93f471f0c5cecdad42b319.tar.bz2
drakx-50400a788dfb5dd77f93f471f0c5cecdad42b319.tar.xz
drakx-50400a788dfb5dd77f93f471f0c5cecdad42b319.zip
added missing AlwaysCore line for second mouse in XF3.
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r--perl-install/mouse.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index 8ab4db5bd..07130be50 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -360,9 +360,9 @@ sub write_conf {
if ($mouse->{auxmouse}) {
if (/DeviceName\s+"Mouse2"/ .. /^EndSection/) {
$found_auxmouse = 1;
- $_ = '' if /(ZAxisMapping|Emulate3)/; #- remove existing line
+ $_ = '' if /(ZAxisMapping|Emulate3|AlwaysCore)/; #- remove existing line
s|^(\s*Protocol\s+).*|$1"$mouse->{auxmouse}{XMOUSETYPE}"|;
- s|^(\s*Device\s+).*|$1"/dev/$mouse->{auxmouse}{device}"$str_zaxis_aux|;
+ s|^(\s*Device\s+).*|$1"/dev/$mouse->{auxmouse}{device}"\n AlwaysCore$str_zaxis_aux|;
}
}
} $f if -e $f && !$::testing;
@@ -374,7 +374,8 @@ Section "XInput"
SubSection "Mouse"
DeviceName "Mouse2"
Protocol "$mouse->{auxmouse}{XMOUSETYPE}"
- Device "/dev/$mouse->{auxmouse}{device}"$str_zaxis_aux
+ Device "/dev/$mouse->{auxmouse}{device}"
+ AlwaysCore$str_zaxis_aux
EndSubSection
EndSection
);