bug 1080: Fold UTF-8 and unibyte dumping together
[elinks.git] / contrib / gpm-wheel.patch
blobe1d7003e5bbe35c1ca82376bc16794dd9d025fb9
1 Make GPM emit mouse-wheel-only events so you can use the wheel to
2 scroll in ELinks. GPM 1.20.3pre5 already contains a similar patch.
4 --- gpm-1.20.1/src/gpm.c.old 2006-07-27 22:52:10.095084528 +0200
5 +++ gpm-1.20.1/src/gpm.c 2006-07-27 22:52:48.503245600 +0200
6 @@ -530,7 +530,7 @@
7 /* up and down, up and down, ... who does a do..while(0) loop ???
8 and then makes a break into it... argh ! */
10 - if (!event->dx && !event->dy && (event->buttons==oldB))
11 + if (!event->dx && !event->dy && !event->wdx && !event->wdy && (event->buttons==oldB))
12 do { /* so to break */
13 static long awaketime;