Re: [PATCH] [rdp compositor] handle mouse wheel

2013-06-03 Thread Hardening
Le 03/06/2013 22:41, Bill Spitzak a écrit : Hardening wrote: +#define DEFAULT_AXIS_STEP_DISTANCE wl_fixed_from_int(10) +axis = DEFAULT_AXIS_STEP_DISTANCE * ((flags & 0xff) / 120); This can only make the fixed numbers 0, 10.0, and 20.0. Is this correct? A wild guess is that this is

Re: [PATCH] [rdp compositor] handle mouse wheel

2013-06-03 Thread Bill Spitzak
Hardening wrote: +#define DEFAULT_AXIS_STEP_DISTANCE wl_fixed_from_int(10) + axis = DEFAULT_AXIS_STEP_DISTANCE * ((flags & 0xff) / 120); This can only make the fixed numbers 0, 10.0, and 20.0. Is this correct? A wild guess is that this is actually what is wanted: axis =

[PATCH] [rdp compositor] handle mouse wheel

2013-06-03 Thread Hardening
The RDP compositor was ignoring mouse wheel events, this patch adds support for it. --- src/compositor-rdp.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c index e855ba6..e234816 100644 --- a/src/compositor-rdp.c