Re: [patch] Add 2nd scrollwheel scrolling



> > >  It would be nice if Gtk+ could handle scrolling nicely automatically
> > >  without having to use a hack like Imwheel.
> > 
> > It does, even in GTK+-1.2. (Not perfectly, but decently.)
> 
> The biggest beef I have with the GTK wheel handling is that the use of
> button4 & button5 as the wheel events is hardcoded in gtkmain.c:
> 
>       if ((grab_widget == event_widget) &&
> 	  (event->button.button == 4 || event->button.button == 5))
> 
> And this fails for people that have complicated mice where it would be
> better to have buttons 1-5 be 'real' buttons and 6-7 be the wheel.

This can also be configured in the X server with 'xmodmap -e "pointer
= 1 2 3 6 7 5"' or something like that. Maybe XF86Config should be
extended to take a line of that form, instead of the current and more
restrictive 'ZAxisMapping' line.

Having the number of buttons fixed, or the number of scrollwheels is
flawed, IMHO. My mouse (A4 Tech) has two mouse wheels and only 3
buttons, for example.

But I will look into Gdk 2.0.0 and resubmit my renewed patch, as soon
as I find time.

-- 
Rutger Nijlunsing, rutger @ null.net ----------------------------- Linux! --
Don't BiCapitalize without extremely good reason: it messes up the natural
human-eyeball search order -- Your Friendly Neighborhood Archive Maintainers
+31-40 ----------------------------------------------------------- ^X^S^X^Cs




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]