[PATCH libinput 6/9] Push the touchpad magic slowdown to the touchpad accel code

2015-03-16 Thread Peter Hutterer
This way the unaccelerated deltas returned by libinput are correct. To maintain the current behavior we slow down the input speed by the magic factor and likewise the accelerated output speed. This produces virtually the same accelerated deltas as the previous code. The magic factor is applied to

Re: [RFC libinput 2/2] touchpad: Implement pinch gesture support (wip)

2015-03-16 Thread Peter Hutterer
On Mon, Mar 16, 2015 at 02:58:02PM +0100, Hans de Goede wrote: > Hi, > > On 12-03-15 09:23, Peter Hutterer wrote: > >On Wed, Mar 11, 2015 at 03:20:55PM +0100, Hans de Goede wrote: > >>Implement touchpad pinch (and rotate) gesture support. > >> > >>WIP: TODO: fix testsuite. > >> > >>Signed-off-by:

[PATCH libinput 7/9] evdev: refactor fake resolution setting

2015-03-16 Thread Peter Hutterer
Make the helper function accessible from other places (will be needed in an upcoming patchset). This also now takes a custom resolution as argument instead of always setting it to 1, and allows overriding a fake resolution after the fact. And instead of a hardcoded 1 everywhere, use a define for t

[PATCH libinput 3/9] evdev: fix android MT devices

2015-03-16 Thread Peter Hutterer
These devices don't provide ABS_X/Y, but do have proper multitouch. Signed-off-by: Peter Hutterer --- src/evdev.c | 20 1 file changed, 20 insertions(+) diff --git a/src/evdev.c b/src/evdev.c index c661af9..ea63356 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1396,6 +1396

[PATCH libinput 2/9] touchpad: check for the fake_resolution boolean instead of a res value

2015-03-16 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-buttons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c index 3ca37b7..18c32fd 100644 --- a/src/evdev-mt-touchpad-buttons.c +++ b/src/evdev-mt-touchp

[PATCH libinput 4/9] evdev: add evdev_reject_device to reject a couple of oddball devices

2015-03-16 Thread Peter Hutterer
We really don't need to deal with devices that have x but not y or vice versa. Signed-off-by: Peter Hutterer --- src/evdev.c | 23 + test/device.c | 103 ++ 2 files changed, 126 insertions(+) diff --git a/src/evdev.c b/src/e

[PATCH libinput 1/9] touchpad: simplify resolution check

2015-03-16 Thread Peter Hutterer
The struct evdev_device's absinfo_x/y point to the right axis Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index a932287..d0311a4 100644 --- a/src/evd

[PATCH libinput 9/9] evdev: factor out setting up the MT slots/mtdev

2015-03-16 Thread Peter Hutterer
No functional changes Signed-off-by: Peter Hutterer --- src/evdev.c | 100 ++-- 1 file changed, 57 insertions(+), 43 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index d9860b1..284aa1f 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -

[PATCH libinput 8/9] touchpad: parse the TOUCHPAD_RESOLUTION property

2015-03-16 Thread Peter Hutterer
Not all touchpad kernel drivers supply the x/y resolution. Let the udev hwdb fix this up where possible and read the value from it. This is intentionally only used on touchpads, touchscreen devices without resolution should be considered buggy and fixed in the kernel. Signed-off-by: Peter Huttere

[PATCH libinput 5/9] evdev: don't try to fix abs devices without x/y

2015-03-16 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index 3481b45..570c436 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1490,7 +1490,8 @@ evdev_configure_device(struct evdev_device *device)

Re: [wayland HiDPI support, posible regression?]

2015-03-16 Thread microcai
on Monday 16 March 2015 20:39:15,Jasper St. Pierre wrote: > "dumb" clients also include X11 clients for legacy Xwayland compatibility. > Of which there a lot of. > xwayland will not have buffer scale support anyway. besides, qt and gtk on X11 already do well at DPI-independence. > On Mar 16, 20

Re: [wayland HiDPI support, posible regression?]

2015-03-16 Thread Jasper St. Pierre
"dumb" clients also include X11 clients for legacy Xwayland compatibility. Of which there a lot of. On Mar 16, 2015 8:35 PM, "microcai" wrote: > on Monday 16 March 2015 20:28:48,Daniel Stone wrote: > > Hi, > > > > On 16 March 2015 at 00:35, Jason Ekstrand wrote: > > > On Tue, Mar 10, 2015 at 12:

Re: [wayland HiDPI support, posible regression?]

2015-03-16 Thread microcai
on Monday 16 March 2015 20:28:48,Daniel Stone wrote: > Hi, > > On 16 March 2015 at 00:35, Jason Ekstrand wrote: > > On Tue, Mar 10, 2015 at 12:00 PM, Bill Spitzak wrote: > >> [blah blah blah] > >> > >> Events seem to be ok, but my complaint is that a large number of > >> coordinates in the api

Re: [PATCH libinput 00/12] typesafe coordinate wrappers

2015-03-16 Thread Peter Hutterer
On Mon, Mar 16, 2015 at 12:40:20PM +0100, Hans de Goede wrote: > Hi Peter, > > On 12-03-15 09:36, Peter Hutterer wrote: > > > >libinput has two types of coordinates - device coordinates and coordinates > >normalized into the 1000 dpi default. we generally use int/double for those > >two, but it's

Re: [wayland HiDPI support, posible regression?]

2015-03-16 Thread Bill Spitzak
On 03/16/2015 01:28 PM, Daniel Stone wrote: Any talk of throwing away buffer scaling (breaking dumb clients) in order to fit the uses of clients who already today avoid buffer scaling, is utterly pointless. Any attempt to handwave away the disadvantages as nonexistent is disingenuous. I'm comp

Re: [PATCH weston 4/4] clients & tests: use eglCreatePlatformWindowSurfaceEXT when supported

2015-03-16 Thread Bryce Harrington
On Wed, Feb 25, 2015 at 01:42:13PM +0100, Jonny Lamb wrote: > --- > clients/nested-client.c | 22 ++ > clients/simple-egl.c | 22 ++ > clients/subsurfaces.c | 22 +++--- > clients/window.c | 22 ++ > te

Re: [PATCH weston 3/4] gl-renderer: use eglCreatePlatformWindowSurfaceEXT to get EGLSurfaces

2015-03-16 Thread Bryce Harrington
On Wed, Feb 25, 2015 at 01:42:12PM +0100, Jonny Lamb wrote: > --- > src/compositor-drm.c | 3 ++- > src/compositor-fbdev.c | 2 +- > src/compositor-wayland.c | 1 + > src/compositor-x11.c | 5 + > src/gl-renderer.c| 42 +- > src/gl-

Re: [wayland HiDPI support, posible regression?]

2015-03-16 Thread Daniel Stone
Hi, On 16 March 2015 at 00:35, Jason Ekstrand wrote: > On Tue, Mar 10, 2015 at 12:00 PM, Bill Spitzak wrote: >> [blah blah blah] >> >> Events seem to be ok, but my complaint is that a large number of coordinates >> in the api other than events are in integer logical pixels, not in high dpi >> or

Re: [PATCH weston] compositor-fbdev: enumerate available fbdevs using udev

2015-03-16 Thread Bryce Harrington
On Tue, Mar 17, 2015 at 01:31:44AM +0900, Ryo Munakata wrote: > On Wed, 11 Mar 2015 17:58:00 + > Philip Withnall wrote: > > > On Wed, 2015-03-11 at 16:05 +0200, Pekka Paalanen wrote: > > > On Tue, 10 Mar 2015 11:34:45 +0900 > > > Ryo Munakata wrote: > > > > > > > This was a TODO: > > > > "I

Re: [PATCH weston] compositor-fbdev: enumerate available fbdevs using udev

2015-03-16 Thread Bryce Harrington
On Tue, Mar 17, 2015 at 01:26:32AM +0900, Ryo Munakata wrote: > On Wed, 11 Mar 2015 17:54:42 + > Philip Withnall wrote: > > First, sorry for my late reply. > > > On Thu, 2015-03-12 at 00:40 +0900, Ryo Munakata wrote: > > > On Wed, 11 Mar 2015 16:05:55 +0200 > > > Pekka Paalanen wrote: > > >

Re: [PATCH weston] compositor-fbdev: enumerate available fbdevs using udev

2015-03-16 Thread Ryo Munakata
On Wed, 11 Mar 2015 17:58:00 + Philip Withnall wrote: > On Wed, 2015-03-11 at 16:05 +0200, Pekka Paalanen wrote: > > On Tue, 10 Mar 2015 11:34:45 +0900 > > Ryo Munakata wrote: > > > > > This was a TODO: > > > "Ideally, available frame buffers should be enumerated > > > using udev, rather th

Re: [PATCH weston] compositor-fbdev: enumerate available fbdevs using udev

2015-03-16 Thread Ryo Munakata
On Wed, 11 Mar 2015 17:54:42 + Philip Withnall wrote: First, sorry for my late reply. > On Thu, 2015-03-12 at 00:40 +0900, Ryo Munakata wrote: > > On Wed, 11 Mar 2015 16:05:55 +0200 > > Pekka Paalanen wrote: > > > > > On Tue, 10 Mar 2015 11:34:45 +0900 > > > Ryo Munakata wrote: > > > > >

Re: [RFC libinput 2/2] touchpad: Implement pinch gesture support (wip)

2015-03-16 Thread Hans de Goede
Hi, On 12-03-15 09:23, Peter Hutterer wrote: On Wed, Mar 11, 2015 at 03:20:55PM +0100, Hans de Goede wrote: Implement touchpad pinch (and rotate) gesture support. WIP: TODO: fix testsuite. Signed-off-by: Hans de Goede looks good, almost all comments are just related to coding style/shuffli

Re: [PATCH libinput 00/12] typesafe coordinate wrappers

2015-03-16 Thread Hans de Goede
Hi Peter, On 12-03-15 09:36, Peter Hutterer wrote: libinput has two types of coordinates - device coordinates and coordinates normalized into the 1000 dpi default. we generally use int/double for those two, but it's not always clear or obvious which type of coordinates we're dealing with. So th

[PATCH libinput 0/2] touchpad: Add pinch gesture support

2015-03-16 Thread Hans de Goede
Hi All, The pinch gesture support I've been working on is "finished", so here is the first non RFC version of the pinch gesture support series, addressing all the comments made on the RFC versions. Regards, Hans ___ wayland-devel mailing list wayland-d

[PATCH libinput 2/2] touchpad: Implement pinch gesture support

2015-03-16 Thread Hans de Goede
Implement touchpad pinch (and rotate) gesture support. Note that two two-finger scrolling tests are slightly tweaked to assure that there is enough touch movement to allow the scroll-or-pinch detect code to do its works. Signed-off-by: Hans de Goede --- src/evdev-mt-touchpad-gestures.c | 280 ++

[PATCH libinput 1/2] touchpad: Extend the touchpad gesture API with pinch gestures

2015-03-16 Thread Hans de Goede
Extend the touchpad gesture API with pinch gestures. Note that this new API offers a single event stream for both pinch and rotate data, this is deliberate as some applications may be interested in getting both at the same time. Applications which are only interested in one or the other can simply

Re: [RFC libinput 1/2] touchpad: Extend the touchpad gesture API with pinch gestures

2015-03-16 Thread Hans de Goede
Hi, On 12-03-15 23:57, Peter Hutterer wrote: On Wed, Mar 11, 2015 at 03:20:54PM +0100, Hans de Goede wrote: Extend the touchpad gesture API with pinch gestures. Note that this new API offers a single event stream for both pinch and rotate data, this is deliberate as some applications may be int