From 50400a788dfb5dd77f93f471f0c5cecdad42b319 Mon Sep 17 00:00:00 2001
From: Francois Pons <fpons@mandriva.com>
Date: Fri, 31 Aug 2001 16:45:13 +0000
Subject: added missing AlwaysCore line for second mouse in XF3.

---
 perl-install/mouse.pm | 7 ++++---
 1 file 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
 );
-- 
cgit v1.2.1