[PATCH libinput 5/6] accel_profile_smooth_simple: Fix jump in acceleration curve

2014-07-07 Thread Peter Hutterer
From: Hans de Goede hdego...@redhat.com There was an error in the value passed to the second calc_penumbral_gradient call causing a jump in the acceleration curve. This commit fixes this. Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Signed

[PATCH libinput 1/6] filter: rename motion_filter_destroy to filter_destroy

2014-07-07 Thread Peter Hutterer
For better consistency with filter_dispatch(). And move the things around to keep the consumable API together. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad.c | 2 +- src/evdev.c | 2 +- src/filter.c| 18 +- src

[PATCH libinput 3/6] filter: drop delta-softening

2014-07-07 Thread Peter Hutterer
the pointer pointer behave slightly better at low speeds though the increase is small enough to attribute to confirmation bias. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- For a visualization of the jump, see https://gist.github.com/whot/c9e66f368a1b895d9c22#file-libinput-soften_delta

[PATCH libinput 4/6] accel_profile_smooth_simple: Cleanup

2014-07-07 Thread Peter Hutterer
From: Hans de Goede hdego...@redhat.com Cleanup the code a bit, and make sure accel is at least 1.0 . Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/filter.c | 21

[PATCH libinput 2/5] filter: use a separate variable for the final accel factor

2014-07-07 Thread Peter Hutterer
velocity is in unit/ms, the threshold is in units/ms. Once we divide velocity/threshold, we're not in units/ms anymore but have a unitless factor. Use a separate variable to avoid confusion. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/filter.c | 9 + 1 file changed, 5

[PATCH libinput 3/5] filter: drop constant acceleration

2014-07-07 Thread Peter Hutterer
This just moves a decimal point around, at the expense of making the approach harder to understand. The only time the const acceleration matters is when applied to the velocity but it only matters in relation to the threshold which is a fixed number. Signed-off-by: Peter Hutterer peter.hutte

[PATCH libinput 1/5] filter: annotate the various variables we have with units

2014-07-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/filter.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/filter.c b/src/filter.c index 6fbd4d9..7db78ba 100644 --- a/src/filter.c +++ b/src/filter.c @@ -51,22 +51,22

[PATCH libinput 4/5] touchpad: don't feed 0/0 deltas into the accel filters

2014-07-07 Thread Peter Hutterer
which stops whenever the current vector's direction changes from the one in the trackers. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c

[PATCH libinput 5/5] touchpad: normalize the touchpad resolution to 400dpi, not 10 units/mm

2014-07-07 Thread Peter Hutterer
In an attempt to bring method into the madness, normalize the touchpad deltas to those of a USB mouse with 400 dpi. This way the data we're dealing with in the acceleration code is of a known quantity. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- An extra comment

Re: [PATCH libinput] tablet: Rename TILT_VERTICAL and TILT_HORIZONTAL to TILT_X and TILT_Y

2014-07-09 Thread Peter Hutterer
On Wed, Jul 09, 2014 at 01:14:48AM -0400, Stephen Chandler Paul wrote: Since the orientation of the tablet can potentially change, this naming scheme makes a lot more sense then VERTICAL and HORIZONTAL does since they don't reflect the actual physical movement. Signed-off-by: Stephen

Re: [PATCH libinput] touchpad: implement edge-based basic palm detection

2014-07-11 Thread Peter Hutterer
On Fri, Jul 11, 2014 at 08:34:32AM +0200, Daniel Martin wrote: On Fri, Jul 11, 2014 at 11:08:53AM +1000, Peter Hutterer wrote: A large part of palm events are situated on the far edges of the touchpad. In a test run on a T440s while typing a long email all but 2 touch points were located

[PATCH libinput 5/7] touchpad: if a palm touch moves out of the edge zone within a timeout, unpalm

2014-07-15 Thread Peter Hutterer
On small touchpads a touch that is intended to traverse much of the screen width may start at the very edge, i.e. in the palm zone. In that case, and if the touch moves out of the palm zone quickly enough, drop the palm label and make it a normal touchpoint. Signed-off-by: Peter Hutterer

[PATCH libinput 1/7] test: drop sideways-component in two-finger scroll test

2014-07-15 Thread Peter Hutterer
This breaks when we have a device resolution set on the test devices, specificially on the T440. The current tests use a delta of 1% of the device which with the resulution set results in an effective delta of 3 - above the scroll threshold. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net

[PATCH libinput 7/7] touchpad: don't init edge palm detection on touchpads less than 8cm across

2014-07-15 Thread Peter Hutterer
touchpads too - if we don't know how big the touchpad is we can't know if palm detection on the edges is necessary. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad.c | 13 + test/touchpad.c | 28 2 files changed, 41

[PATCH libinput 6/7] touchpad: require a 45 degree movement for a palm to become a touch

2014-07-15 Thread Peter Hutterer
-by: Peter Hutterer peter.hutte...@who-t.net --- Thought this was an interesting-enough idea. The palmdata on the edges tends to move around a bit but it does so mostly vertically. A pure movement threshold is not enough as the palm moves whenever the top or bottom row of the keys are accessed. Adding

[PATCH libinput 3/7] filter: move get_direction into shared header

2014-07-15 Thread Peter Hutterer
Makes it possible to use from the touchpad code. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/filter.c| 60 ++--- src/libinput-util.h | 58 +++ 2 files changed, 60 insertions

[PATCH v2 libinput 4/7] touchpad: implement edge-based basic palm detection

2014-07-15 Thread Peter Hutterer
assigned to be a palm. A finger may move into that exclusion zone without being marked as palm, it just can't start in one. On clickpads, the exclusion zone does not extend into the software buttons. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - drop to 5% src/evdev-mt

[PATCH libinput 2/7] test: set the abs resolution after creating the device

2014-07-15 Thread Peter Hutterer
after the device was initialized. And it's a better alternative than not testing anything dependent on resolution settings. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/litest.c | 32 ++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git

Re: [PATCH libinput 1/2] tablet: Don't swap X and Y in evcode_to_axis()

2014-07-16 Thread Peter Hutterer
On Sun, Jul 13, 2014 at 07:19:28PM -0400, Stephen Chandler Paul wrote: Signed-off-by: Stephen Chandler Paul thatsly...@gmail.com pushed, thanks Cheers, Peter --- src/evdev-tablet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-tablet.h

Re: wl_tablet draft v2

2014-07-16 Thread Peter Hutterer
On Wed, Jul 16, 2014 at 08:08:29PM -0400, Lyude wrote: On Mon, 2014-07-14 at 13:25 -0700, Jason Gerecke wrote: On Sun, Jul 13, 2014 at 12:17 PM, Lyude thatsly...@gmail.com wrote: wl_tablet specifications Version 2 General

Re: [PATCH libinput 1/8] test/path: Avoid creating ignored test devices

2014-07-16 Thread Peter Hutterer
. Signed-off-by: Jonas Ådahl jad...@gmail.com Patches 1, 3, 4, 6, 8 are Reviewed-by: Peter Hutterer peter.hutte...@who-t.net see the in-line comments for the others. Cheers, Peter --- test/path.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions

Re: [PATCH libinput 7/8] evdev: Release still pressed keys/buttons when removing device

2014-07-16 Thread Peter Hutterer
On Wed, Jul 16, 2014 at 10:39:12PM +0200, Jonas Ådahl wrote: Keep track of pressed keys and buttons in a bitmask array and iterate through it on device removal releasing every still pressed key. fwiw, the kernel should release all keys on disconnect these days, but for the manual removal it's

Re: [PATCH libinput 5/8] evdev: Early out during configure if not using fallback dispatch

2014-07-16 Thread Peter Hutterer
On Wed, Jul 16, 2014 at 10:39:10PM +0200, Jonas Ådahl wrote: The feature set configured otherwise would not work anyway as it would need using the fallback dispatch to function. Signed-off-by: Jonas Ådahl jad...@gmail.com --- src/evdev.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [PATCH libinput 2/8] test: Use only one test device for some udev and path tests

2014-07-16 Thread Peter Hutterer
On Wed, Jul 16, 2014 at 10:39:07PM +0200, Jonas Ådahl wrote: Some tests in test/path.c and test/udev.c are not dependent on device behaviour but rather managing of device lifetime etc. Run those tests only once with only one device, resulting more or less the same code coverage but shorter run

Re: libinput returns multiple keyboards that do not generate events

2014-07-17 Thread Peter Hutterer
On Thu, Jul 17, 2014 at 02:43:59PM +0200, Stefanos A. wrote: 2014-07-17 14:39 GMT+02:00 Jasper St. Pierre jstpie...@mecheye.net: In that case, yes, the two keyboards should be on different seats. You can use udev to determine the different seats. Is there any documentation for this?

Re: libinput returns multiple keyboards that do not generate events

2014-07-17 Thread Peter Hutterer
On Thu, Jul 17, 2014 at 03:37:41PM +0200, Stefanos A. wrote: 2014-07-17 14:57 GMT+02:00 Jasper St. Pierre jstpie...@mecheye.net: I don't see a benefit for running directly on a Linux console. I don't have any examples of using udev on me at the moment, but Weston should have a few.

Re: wl_tablet draft v2

2014-07-17 Thread Peter Hutterer
On Thu, Jul 17, 2014 at 11:48:03AM -0700, Bill Spitzak wrote: On 07/13/2014 12:17 PM, Lyude wrote: - proximity_out Sent whenever the tool leaves the proximity of the tablet or moves out of the client surface. When the tool goes out of proximity, button release

[PATCH libinput 2/3] test: reduce sideways-component in two-finger scroll test

2014-07-18 Thread Peter Hutterer
This breaks when we have a device resolution set on the test devices, specificially on the T440. The current tests use a delta of 1% of the device which with the resolution set results in an effective delta of 3 - above the scroll threshold. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net

[PATCH libinput 1/3] test: widen litest to use doubles for scaled variables

2014-07-18 Thread Peter Hutterer
, then the single move by 1%. That caused two events - not enough to satisfy tp_estimate_delta, so we always had a delta of 0/0 regardless of the size of the move. Now with doubles this fails, so drop it to 0.1% instead, which is small enough on all touchpads we currently have. Signed-off-by: Peter

[PATCH libinput 3/3] touchpad: correct a wrong comment

2014-07-18 Thread Peter Hutterer
The minimum to start 2fg scrolling is in device units, not pixels. Which is bad on many levels, but let's correct it in the comment at least. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src

[PATCH libinput] touchpad: always enable palm detection on apple touchpads

2014-07-21 Thread Peter Hutterer
They don't set resolution so we can't calculate the size but we know they're big enough to need palm detection. And fix the descriptor for the bcm5974. For some reason this was advertising synaptics coordinates. Fix it to represent (one of) the apple touchpads. Signed-off-by: Peter Hutterer

[PATCH libinput] test: add test for 3-finger tapping

2014-07-21 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Series looks good, just double-check the tests for me please. This needs the fixed bcm5974 patch I just sent a minute ago to work. test/touchpad.c | 109 1 file changed, 109

[PATCH libinput 1/2] Use an enum to enable/disable tapping configuration

2014-07-21 Thread Peter Hutterer
More expressive in the caller and less ambiguous about return values (is it 1? is it non-zero? can it be negative?) Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad-tap.c | 14 ++- src/libinput-private.h | 6 ++--- src/libinput.c | 14

[PATCH libinput 2/2] tools: always enable tapping in the event-gui program

2014-07-21 Thread Peter Hutterer
This is a debugging tool, so the features to debug should be enabled by default. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- tools/event-gui.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/event-gui.c b/tools/event-gui.c index b4a6506..544a682 100644

Re: [PATCH] touchpad: reset motion history when nfingers changes on semi-mt pads

2014-07-21 Thread Peter Hutterer
On Mon, Jul 21, 2014 at 03:25:47PM +0200, Hans de Goede wrote: On semi-mt touchpads the reported position of the first finger down may jump when the pad switches from st to mt mode. When this happens a large delta gets seen on the first finger at the same time the second fingers is first seen

[PATCH libinput] test: auto-update for BTN_TOOL_* when using litest_touch_ functions

2014-07-21 Thread Peter Hutterer
if they don't have BTN_TOOL_DOUBLETAP. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/litest-bcm5974.c| 4 test/litest-synaptics-st.c | 3 --- test/litest-synaptics-t440.c | 4 test/litest-synaptics.c | 4 test/litest.c| 19

Re: [PATCH libinput v2] tablet: fix get_x_transformed() and get_y_transformed()

2014-07-21 Thread Peter Hutterer
On Sun, Jul 20, 2014 at 10:20:41PM -0400, Stephen Chandler Paul wrote: Because the values for each axis were stored in struct tablet_dispatch in millimeters, coordinates were not being translated properly to screen coordinates. This stores the values internally as raw coordinates, and only

Re: [PATCH] touchpad: reset motion history when nfingers changes on semi-mt pads

2014-07-22 Thread Peter Hutterer
On Tue, Jul 22, 2014 at 09:18:26AM +0200, Hans de Goede wrote: Hi, On 07/22/2014 01:34 AM, Peter Hutterer wrote: On Mon, Jul 21, 2014 at 03:25:47PM +0200, Hans de Goede wrote: On semi-mt touchpads the reported position of the first finger down may jump when the pad switches from st to mt

[PATCH libinput] test: add a semi-mt Alps test device

2014-07-24 Thread Peter Hutterer
feature for litest: LITEST_SEMI_MT Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/Makefile.am | 1 + test/litest-alps-semi-mt.c | 258 + test/litest-int.h | 4 +- test/litest.c | 17 +-- test/litest.h

Re: [PATCH] doc: Quell warnings about missing man3 directory before its been built

2014-08-03 Thread Peter Hutterer
sorry about the delay, was on holidays. On Fri, Jul 25, 2014 at 04:30:41PM +0300, Pekka Paalanen wrote: On Mon, 21 Jul 2014 19:23:49 + Bryce W. Harrington b.harring...@samsung.com wrote: The shell command for dist_man3_MANS gets invoked several times during the make process but before

[PATCH libinput] evdev: don't return a width/height if we faked the resolution

2014-08-03 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 7 ++- src/evdev.h | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index f980812..a125510 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -620,6 +620,7

Re: [PATCH libinput] evdev: Let dispatch instances set their own capabilities

2014-08-03 Thread Peter Hutterer
, and if that would be implemented, it'd be a detail of the touchpad driver, not the generic evdev device part. Signed-off-by: Jonas Ådahl jad...@gmail.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Cheers, Peter --- On Thu, Jul 17, 2014 at 02:25:18PM +1000, Peter Hutterer wrote

Re: [PATCH libinput] test: Use only one test device for some udev and path tests

2014-08-03 Thread Peter Hutterer
, works for me. Updated version of the patch: replace all LITEST_CLICKPAD with LITEST_SYNAPTICS_CLICKPAD and then it's Reviewed-by: Peter Hutterer peter.hutte...@who-t.net the former is a feature flag, the latter is the actual device. Cheers, Peter test/litest.c | 45

Re: [PATCH libinput 1/4] evdev: Ignore key/button release events if key was never pressed

2014-08-03 Thread Peter Hutterer
On Sun, Jul 27, 2014 at 11:28:28PM +0200, Jonas Ådahl wrote: The kernel may send a 'release' event without ever having sent a key 'pressed' event in case the key was pressed before libinput was initiated. Ignore these events so that we always guarantee a release event always comes after a

Re: [PATCH libinput 1/4] evdev: Ignore key/button release events if key was never pressed

2014-08-03 Thread Peter Hutterer
On Mon, Jul 28, 2014 at 10:03:25AM -0700, Bill Spitzak wrote: On 07/27/2014 11:48 PM, Ran Benita wrote: Hi Jonas, On Sun, Jul 27, 2014 at 11:28:28PM +0200, Jonas Ådahl wrote: The kernel may send a 'release' event without ever having sent a key 'pressed' event in case the key was pressed

Re: [PATCH libinput 2/4] evdev: Keep track of button/key press count per device

2014-08-03 Thread Peter Hutterer
(device-base, time, button, state); here too, with that Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Cheers, Peter +} + void evdev_device_led_update(struct evdev_device *device, enum libinput_led leds) { @@ -341,16 +382,16 @@ evdev_process_key(struct evdev_device *device

Re: [PATCH libinput 3/4] evdev: Release still pressed keys/buttons when removing device

2014-08-03 Thread Peter Hutterer
; + valid_code = 1; + } + } just fyi, if you name the struct you could use ARRAY_FOR_EACH here, not that it matters that much. with the for/while loop change (in both tests): Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Cheers, Peterk

Re: wl_tablet draft v2

2014-08-05 Thread Peter Hutterer
On Tue, Aug 05, 2014 at 06:18:00PM -0700, Jason Gerecke wrote: On Sat, Aug 2, 2014 at 12:31 PM, Lyude thatsly...@gmail.com wrote: I'm sorry I took so long to reply to this! I only just found this e-mail while I was cleaning my inbox up. On Wed, 2014-07-30 at 17:33 -0700, Jason Gerecke

Re: [PATCH libinput 2/2] tablet: Add libinput_tool_get/set_user_data()

2014-08-05 Thread Peter Hutterer
On Tue, Aug 05, 2014 at 05:49:39PM -0400, Stephen Chandler Paul wrote: Signed-off-by: Stephen Chandler Paul thatsly...@gmail.com merged, thanks. Cheers, Peter --- src/libinput-private.h | 1 + src/libinput.c | 13 + src/libinput.h | 23

Re: [PATCH libinput 1/2] tablet: Add libinput_tablet_has_axis()

2014-08-05 Thread Peter Hutterer
On Tue, Aug 05, 2014 at 05:49:38PM -0400, Stephen Chandler Paul wrote: Checks whether or not the tablet can report the specified axis, so callers can get an idea of a tablet's capabilities. we discussed this on IRC but for the archives: I'm thinking that this may actually be better solved by

Re: [PATCH] tests: add NO_FORK option

2014-08-06 Thread Peter Hutterer
On Wed, Aug 06, 2014 at 11:23:42AM +0200, Marek Chalupa wrote: When WAYLAND_TEST_NO_FORK environment variable is set, then do not run the test in fork. It's convenient for debugging Signed-off-by: Marek Chalupa mchqwe...@gmail.com have a look at libinput/test/litest.c:is_debugger_attached(),

Re: [PATCH libinput 1/2] tablet: Use separate tool objects for tools without serials

2014-08-06 Thread Peter Hutterer
this patch really needs a extensive commit message explaining why we keep those separate. we've discussed that on IRC, but for everyone else it needs to be in the commit msg. On Thu, Aug 07, 2014 at 12:09:22AM -0400, Stephen Chandler Paul wrote: Signed-off-by: Stephen Chandler Paul

Re: [PATCH libinput v3] tablet: Use separate tool objects for tools without serials

2014-08-07 Thread Peter Hutterer
On Thu, Aug 07, 2014 at 07:00:52PM -0400, Stephen Chandler Paul wrote: With tablets that don't support serial numbers, we can't guarantee that the tool objects are unique. Because of this, this can give clients the false impression that a tool without a serial number is being shared between

Re: [PATCH libinput 2/2 v2] tablet: Add libinput_tool_has_axis() and tests

2014-08-07 Thread Peter Hutterer
On Thu, Aug 07, 2014 at 06:54:55PM -0400, Stephen Chandler Paul wrote: Because the axes that tool reports can change depending on the tool in use, we want to be able to provide functionality to determine which axes each tool can support. Signed-off-by: Stephen Chandler Paul

Re: [PATCH libinput v3] tablet: Add libinput_tool_has_axis() and tests

2014-08-07 Thread Peter Hutterer
On Thu, Aug 07, 2014 at 10:02:22PM -0400, Stephen Chandler Paul wrote: Because the axes that tool reports can change depending on the tool in use, we want to be able to provide functionality to determine which axes each tool can support. Signed-off-by: Stephen Chandler Paul

[PATCH libinput] touchpad: increase top software button area to 15%

2014-08-07 Thread Peter Hutterer
and because a sample set of 3 is too small to be definitive about this. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad-buttons.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c

Re: [PATCH libinput 3/4] evdev: Release still pressed keys/buttons when removing device

2014-08-10 Thread Peter Hutterer
On Sun, Aug 10, 2014 at 12:27:07PM +0200, Jonas Ådahl wrote: On Mon, Aug 04, 2014 at 03:23:32PM +1000, Peter Hutterer wrote: On Sun, Jul 27, 2014 at 11:28:30PM +0200, Jonas Ådahl wrote: When removing a device, its not guaranteed that all button or key presses have been released, resulting

Re: Weston: Touch failing when using libinput

2014-08-17 Thread Peter Hutterer
On Sun, Aug 17, 2014 at 02:30:44PM +, Cooper Jr., Franklin wrote: I've made progress and I'm pretty sure what the problem is and trying to see how to properly fix things. Also my system is using a resistive touchscreen. I'm not sure how cap touch screens are handled. Weston without

[PATCH libinput 2/2] Disable static libraries

2014-08-18 Thread Peter Hutterer
://bugs.freedesktop.org/show_bug.cgi?id=82785 Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 76fe4c9..44e73d3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -34,7

[PATCH libinput 1/2] Use -no-install instead of -static for local noinst linking

2014-08-18 Thread Peter Hutterer
The goal of -static was to avoid the libtool wrappers for easier debugging. The -no-install flag does exactly that, without requiring static linking. Related to https://bugs.freedesktop.org/show_bug.cgi?id=82292 Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/Makefile.am | 16

Re: The road to Wayland/Weston 1.6 and 1.5.1

2014-08-19 Thread Peter Hutterer
On Mon, Aug 18, 2014 at 02:35:49PM +0300, Pekka Paalanen wrote: Hi all, in the release announcement of 1.5.0[1] it was said that the alpha release towards 1.6 should come out mid-August. That time is now, so how about we target Friday, Aug 22nd (European time)? I know the review process

Re: [PATCH libinput] evdev: allow weird multitouch device without slots

2014-08-19 Thread Peter Hutterer
On Tue, Aug 19, 2014 at 06:29:40AM +0300, Leonid Borisenko wrote: HID device 'USB HID v1.11 Mouse' provided by Microsoft Wireless Optical Desktop® 2.20 (connected to USB and identified as vendor 0x45e, product 0xe3, version 0x111) is reported as supporting EV_ABS event with ABS_MT_SLOT code,

[PATCH 01/18] doc: don't add a para for an empty summary

2013-04-01 Thread Peter Hutterer
Removes enough empty lines to cut the PDF down by 4 pages. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/protocol-to-docbook.xsl | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/Wayland/protocol-to-docbook.xsl b/doc/Wayland/protocol

[PATCH 03/18] doc: Set book edition number to the 1

2013-04-01 Thread Peter Hutterer
that. Signed-off-by: Tiago Vignatti tiago.vigna...@intel.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/en_US/Book_Info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Wayland/en_US/Book_Info.xml b

[PATCH 02/18] doc: Add a Foreword and a Preface

2013-04-01 Thread Peter Hutterer
From: Tiago Vignatti tiago.vigna...@intel.com In particular, the preface defines the scope of this document we're building -- is the definition there enough with respect to what we want with this? Signed-off-by: Tiago Vignatti tiago.vigna...@intel.com Reviewed-by: Peter Hutterer peter.hutte

[PATCH 04/18] doc: Improve the first chapter text and definitions

2013-04-01 Thread Peter Hutterer
sound better a bit than Overview, Replacing X11 and Make the compositing manager the display server respectively. That was changed also. Signed-off-by: Tiago Vignatti tiago.vigna...@intel.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Signed-off-by: Peter Hutterer peter.hutte...@who-t.net

[PATCH 05/18] doc: Rename Overview.xml to Introduction.xml

2013-04-01 Thread Peter Hutterer
From: Tiago Vignatti tiago.vigna...@intel.com Rename Overview.xml to Introduction.xml, reflecting the previous commit. Organize also Wayland.xml order of the includes. Signed-off-by: Tiago Vignatti tiago.vigna...@intel.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Signed-off-by: Peter

[PATCH 06/18] doc: Change chapter title to a more descriptive one

2013-04-01 Thread Peter Hutterer
From: Tiago Vignatti tiago.vigna...@intel.com Signed-off-by: Tiago Vignatti tiago.vigna...@intel.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/en_US/Protocol.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 09/18] doc: minor title wording fix

2013-04-01 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/en_US/Introduction.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Wayland/en_US/Introduction.xml b/doc/Wayland/en_US/Introduction.xml index 51e451e..b3b89e7 100644 --- a/doc/Wayland/en_US

[PATCH 10/18] doc: Add our own Legal Notice

2013-04-01 Thread Peter Hutterer
From: Tiago Vignatti tiago.vigna...@intel.com Previously, Publican was auto-generating a file with it and systems that don't have such tool can't benefit from it. This patch adds our own copy of Legal Notice. Signed-off-by: Tiago Vignatti tiago.vigna...@intel.com Signed-off-by: Peter Hutterer

[PATCH 11/18] doc: Format Chapter 4 paragraphs correctly

2013-04-01 Thread Peter Hutterer
From: Tiago Vignatti tiago.vigna...@intel.com Signed-off-by: Tiago Vignatti tiago.vigna...@intel.com --- doc/Wayland/doxygen-to-publican.xsl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/Wayland/doxygen-to-publican.xsl b/doc/Wayland/doxygen-to-publican.xsl index

[PATCH 12/18] doc: clarify how ClientAPI.xml is built

2013-04-01 Thread Peter Hutterer
I found the comment a bit confusing and it's quite hard to read. re-explain with a simple step-by-step list Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/Makefile.am | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/Wayland/Makefile.am b

[PATCH 13/18] doc: explain the publican build process

2013-04-01 Thread Peter Hutterer
This makefile is a bit hard to read due to some publican requirements and the need to generate some files through XSLT. Explain the lot, so that those looking at this roughly know what will hit them. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/Makefile.am | 17

[PATCH 16/18] doc: change wording in section introduction

2013-04-01 Thread Peter Hutterer
If we don't have descriptions of classes, the And is awkward. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/doxygen-to-publican.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Wayland/doxygen-to-publican.xsl b/doc/Wayland/doxygen

[PATCH 17/18] doc: improve formatting of client-side documentation

2013-04-01 Thread Peter Hutterer
sometagdescription/sometag /para /detaileddescription So we need to ignore parameterlist and simplesect, but extract the text from everything else. Any improvements on that welcome. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/doxygen-to-publican.xsl | 95

[PATCH 18/18] doc: don't start a variable list if we have no sub-elements

2013-04-01 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- doc/Wayland/doxygen-to-publican.xsl | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/Wayland/doxygen-to-publican.xsl b/doc/Wayland/doxygen-to-publican.xsl index 864237c..160b124 100644 --- a/doc

[PATCH 0/4] doc: auto-generate man pages and server documentation

2013-04-01 Thread Peter Hutterer
Patches 2 and 3 can be merged into one, I just left them separate because it makes them easier to understand. As for the server man pages - not overly useful at the moment since there's not enough doxygen info in the source files. Cheers, Peter ___

Re: [PATCH v2 weston] evdev: Mouse speed and acceleration

2013-04-02 Thread Peter Hutterer
On Sun, Mar 31, 2013 at 10:04:44PM +0200, Martin Minarik wrote: Computes an accurate velocity instead of approximation. Changes: Add disclaimer. Implements 8 acceleration profiles taken from X ptrveloc.c. The sampling has been fixed to handle eventual time overflow. Since we added them I

[PATCH 5/4] doc: use a dynamic list of man pages

2013-04-02 Thread Peter Hutterer
This requires that doxygen is run before the man target so find can actually find the man pages. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- On Wed, Apr 03, 2013 at 04:54:10AM +0100, Daniel Stone wrote: Is there any chance we can generate the list of manpages (e.g. by shelling

Re: [PATCH 5/4] doc: use a dynamic list of man pages

2013-04-03 Thread Peter Hutterer
On Wed, Apr 03, 2013 at 09:57:47PM +0200, Quentin Glidic wrote: On 03/04/2013 07:34, Peter Hutterer wrote: [snip] -man3_MANS= $(client_MANPAGES) $(server_MANPAGES) +man3_MANS= $(shell find man/man3/ -name wl_*.3 -printf man/man3/%P\n) You should use dist_man3_MANS here. xml/client

[PATCH] protocol: input documentation fixes

2013-04-03 Thread Peter Hutterer
Fix summary for wl_touch::motion, extend summary for wl_touch::down to match up/motion a bit better. Fix a typo in wl_touch, and claim that it's zero or more update events, not one or more. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- protocol/wayland.xml | 8 1 file

[PATCH v2 1/5] doc: Capitalize all Wayland occurrences

2013-04-03 Thread Peter Hutterer
From: Tiago Vignatti tiago.vigna...@intel.com Signed-off-by: Tiago Vignatti tiago.vigna...@intel.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net [re-run of search/replace after rebasing] Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - rebased to master doc

[PATCH v2 2/5] doc: generate server documentation from XML too

2013-04-03 Thread Peter Hutterer
is specified through the options passed by make. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - rebased to master doc/doxygen/Makefile.am | 19 +++ doc/doxygen/wayland.doxygen.in | 5 ++--- doc/publican/Makefile.am | 33

[PATCH v2 3/5] doc: create a fake make target to de-duplicate the xml merging process

2013-04-03 Thread Peter Hutterer
The only difference between the server and client xml files is the directories and files being named *server* and *client*, respectively. Add a new make target to get that process done to avoid duplication Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v2: - rebased

[PATCH v2 4/5] doc: Improve Library and Compositors chapter

2013-04-03 Thread Peter Hutterer
Originally written Tiago Vignatti tiago.vigna...@intel.com Some modifications to adjust for previously merged conflicting patches and link to the sections (instead of emphasis). Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v2: - rebased to master, links added doc

[PATCH v2 5/5] doc: use a dynamic list of man pages

2013-04-03 Thread Peter Hutterer
This requires that doxygen is run before the man target so find can actually find the man pages. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - use dist_MAN3_MANS - add comment how it works and why we use all-local doc/doxygen/Makefile.am | 57

[PATCH] protocol: revert hotspot_x/y in set_cursor back to int

2013-04-17 Thread Peter Hutterer
copy/paste error introduced in 9c0357af6ee42c318ce37b458ae7bdb7d51316cb Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- sorry. protocol/wayland.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index eda9441

Re: Axis events to keyboard focus (Re: Input and games.)

2013-05-09 Thread Peter Hutterer
On Wed, May 08, 2013 at 09:38:53AM +0300, Pekka Paalanen wrote: On Tue, 07 May 2013 12:14:56 -0700 Bill Spitzak spit...@gmail.com wrote: Pekka Paalanen wrote: If you want to move a pointer with a gamepad in a game, then implement that whole pointer thing in the game. Don't screw up

Re: Axis events to keyboard focus (Re: Input and games.)

2013-05-09 Thread Peter Hutterer
On Mon, May 06, 2013 at 08:06:35PM -0500, Vincent Povirk wrote: Windows used to do this and it is completely nuts. They fixed it in recent versions I don't know what version of Windows you're using, but I can still observe this behavior in the Windows 8 file dialogs. I wrote a program to

Re: Gamepad focus model (Re: Input and games.)

2013-05-09 Thread Peter Hutterer
On Tue, May 07, 2013 at 11:14:08AM -0400, Todd Showalter wrote: On Tue, May 7, 2013 at 3:23 AM, Pekka Paalanen ppaala...@gmail.com wrote: Yeah, like Daniel said, there is no concept of a return value. When a client creates a new object, the server can only either agree, or disconnect

Re: Gamepad focus model (Re: Input and games.)

2013-05-09 Thread Peter Hutterer
On Mon, May 06, 2013 at 03:36:20PM +0300, Pekka Paalanen wrote: [...] I had a private chat with Daniel, and we came to an understanding, which I try to describe below. The interface names below are more like placeholders for now. Into wl_seat, we should add a capability bit for gamepad. When

Re: Gamepad focus model (Re: Input and games.)

2013-05-09 Thread Peter Hutterer
On Wed, May 08, 2013 at 11:46:43AM +, Rick Yorgason wrote: Rick Yorgason rick@... writes: Having the two controllers paired doesn't solve 3.  There are a lot of UI problems with having two pointers running around the screen that share a focus.  Let's say they're one of those crazy

Re: Axis events to keyboard focus (Re: Input and games.)

2013-05-10 Thread Peter Hutterer
On Thu, May 09, 2013 at 05:41:23PM -0700, Bill Spitzak wrote: Peter Hutterer wrote: assuming we have two clients C1, C2, and C1 has the gamepad open, what is the behaviour of the gamepad and the shared pointer: - when the gp-controlled pointer enters/leaves C1's surface - when the gp

Re: Gamepad focus model (Re: Input and games.)

2013-05-12 Thread Peter Hutterer
On Fri, May 10, 2013 at 10:41:45AM +0300, Pekka Paalanen wrote: On Thu, 9 May 2013 16:44:09 +1000 Peter Hutterer peter.hutte...@who-t.net wrote: On Mon, May 06, 2013 at 03:36:20PM +0300, Pekka Paalanen wrote: [...] I had a private chat with Daniel, and we came to an understanding

Re: [RFC] libinputmapper: Input device configuration for graphic-servers

2013-05-15 Thread Peter Hutterer
On Sun, May 12, 2013 at 04:20:59PM +0200, David Herrmann wrote: [bcc to gnome-shell-list and kwin, to keep discussion on wayland-devel] Without a generic graphics-server like xserver, compositors need to handle input devices themselves if run as wayland compositors. To avoid having several

Re: [RFC] libinputmapper: Input device configuration for graphic-servers

2013-05-20 Thread Peter Hutterer
On Thu, May 16, 2013 at 08:38:44AM -0400, Todd Showalter wrote: On Thu, May 16, 2013 at 1:37 AM, Peter Hutterer peter.hutte...@who-t.net wrote: why are gamepads and joysticks different? buttons, a few axes that may or may not map to x/y and the rest is device-specific. this may

Re: [RFC] libinputmapper: Input device configuration for graphic-servers

2013-05-20 Thread Peter Hutterer
On Thu, May 16, 2013 at 03:16:11PM +0200, David Herrmann wrote: Hi Peter On Thu, May 16, 2013 at 7:37 AM, Peter Hutterer peter.hutte...@who-t.net wrote: On Sun, May 12, 2013 at 04:20:59PM +0200, David Herrmann wrote: [..] So what is the proposed solution? My recommendation

Re: [RFC] libinputmapper: Input device configuration for graphic-servers

2013-05-22 Thread Peter Hutterer
On Wed, May 22, 2013 at 12:25:19AM -0400, Rick Yorgason wrote: On 2013-05-20 23:56, Peter Hutterer wrote: what I am wondering is whether that difference matters to the outside observer (i.e. the compositor). a gamepad and a joystick are both gaming devices and with the exception of the odd

Re: [RFC] libinputmapper: Input device configuration for graphic-servers

2013-05-22 Thread Peter Hutterer
On Tue, May 21, 2013 at 04:30:03PM +0200, David Herrmann wrote: Hi Peter On Tue, May 21, 2013 at 6:37 AM, Peter Hutterer peter.hutte...@who-t.net wrote: On Thu, May 16, 2013 at 03:16:11PM +0200, David Herrmann wrote: Hi Peter On Thu, May 16, 2013 at 7:37 AM, Peter Hutterer

Re: [RFC] libinputmapper: Input device configuration for graphic-servers

2013-05-27 Thread Peter Hutterer
On Fri, May 24, 2013 at 05:07:14PM +0200, David Herrmann wrote: [...] This library is intended to solve the classification/detection problem. While the kernel evdev-interface provides us a bunch of information for each device, it doesn't provide any classification of the device (mostly

<    1   2   3   4   5   6   7   8   9   10   >