patch to add mouse wheel support by default to XF86Config

Matthieu Herrb <[email protected]>
Newsgroups gmane.os.openbsd.x11
Message-ID <[email protected]>
Hi,

the following patch add the option that maps the mouse wheel motion to
buttons 4 & 5 to the XF86Config file generated by XFree86 -configure
and xf86cfg. Please test and report any failures. If no problems are
detected, it should go into 3.2. 

BTW if you have patches to xf86cfg that you'd like to submit, don't
hesitate. 

Index: xc/programs/Xserver/hw/xfree86/common/xf86Configure.c
===================================================================
RCS file: /cvs/XF4/xc/programs/Xserver/hw/xfree86/common/xf86Configure.c,v
retrieving revision 1.7
diff -u -r1.7 xf86Configure.c
--- xc/programs/Xserver/hw/xfree86/common/xf86Configure.c	24 Jun 2002 21:48:03 -0000	1.7
+++ xc/programs/Xserver/hw/xfree86/common/xf86Configure.c	22 Sep 2002 13:45:19 -0000
@@ -331,6 +331,10 @@
     mouse->inp_option_lst = 
 		xf86addNewOption(mouse->inp_option_lst, "Device", DFLT_MOUSE_DEV);
 #endif
+    /* Add default mouse wheel handling */
+    mouse->inp_option_lst = 
+	    xf86addNewOption(mouse->inp_option_lst, "ZAxisMapping", "4 5");
+
     ptr = (XF86ConfInputPtr)xf86addListItem((glp)ptr, (glp)mouse);
     return ptr;
 }

					Matthieu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.