Re: [PATCH libinput v2 3/3] touchpad: Add edge-scrolling support

2014-11-24 Thread Hans de Goede
Hi, On 11/21/2014 01:29 AM, Peter Hutterer wrote: On Thu, Nov 20, 2014 at 10:34:51AM +0100, Hans de Goede wrote: [...] +int +tp_edge_scroll_init(struct tp_dispatch *tp, struct evdev_device *device) +{ + struct tp_touch *t; + int width, height; + int edge_width, edge_height; +

Re: [PATCH libinput v2 3/3] touchpad: Add edge-scrolling support

2014-11-20 Thread Hans de Goede
Hi, On 11/20/2014 07:21 AM, Peter Hutterer wrote: On Wed, Nov 19, 2014 at 01:45:35PM +0100, Hans de Goede wrote: Add edge-scrolling support for non multi-touch touchpads as well as for users who prefer edge-scrolling (as long as they don't have a clickpad). Note the percentage to use of the

Re: [PATCH libinput v2 3/3] touchpad: Add edge-scrolling support

2014-11-20 Thread Peter Hutterer
On Thu, Nov 20, 2014 at 10:34:51AM +0100, Hans de Goede wrote: [...] +int +tp_edge_scroll_init(struct tp_dispatch *tp, struct evdev_device *device) +{ + struct tp_touch *t; + int width, height; + int edge_width, edge_height; + + width = device-abs.absinfo_x-maximum -

[PATCH libinput v2 3/3] touchpad: Add edge-scrolling support

2014-11-19 Thread Hans de Goede
Add edge-scrolling support for non multi-touch touchpads as well as for users who prefer edge-scrolling (as long as they don't have a clickpad). Note the percentage to use of the width / height as scroll-edge differs from one manufacturer to the next, the various per model percentages were taken

Re: [PATCH libinput v2 3/3] touchpad: Add edge-scrolling support

2014-11-19 Thread Peter Hutterer
On Wed, Nov 19, 2014 at 01:45:35PM +0100, Hans de Goede wrote: Add edge-scrolling support for non multi-touch touchpads as well as for users who prefer edge-scrolling (as long as they don't have a clickpad). Note the percentage to use of the width / height as scroll-edge differs from one