Re: [PATCH libinput] tablet: ignore tools already in proximity at startup

2015-02-26 Thread Peter Hutterer
On Thu, Feb 26, 2015 at 01:54:31PM -0800, Ping Cheng wrote: > On Thu, Feb 26, 2015 at 1:31 PM, Benjamin Tissoires > wrote: > > On Thu, Feb 26, 2015 at 12:05 AM, Peter Hutterer > > wrote: > >> Require a tool to be moved into proximity before we handle any events from > >> it. > >> This requires t

Re: [PATCH v2 libinput 25/26] tablet: add libinput_tablet_get_axis_delta()

2015-02-26 Thread Peter Hutterer
On Thu, Feb 26, 2015 at 02:54:03PM -0500, Benjamin Tissoires wrote: > On Wed, Feb 25, 2015 at 11:33 PM, Peter Hutterer > wrote: > > Signed-off-by: Peter Hutterer > > --- > > Changes to v2: > > - delta was stored in tablet->axes[a], causing a wrong axis_value and a > > wrong axis_delta. which the

Re: [PATCH libinput] tablet: ignore tools already in proximity at startup

2015-02-26 Thread Ping Cheng
On Thu, Feb 26, 2015 at 1:31 PM, Benjamin Tissoires wrote: > On Thu, Feb 26, 2015 at 12:05 AM, Peter Hutterer > wrote: >> Require a tool to be moved into proximity before we handle any events from >> it. >> This requires the user to lift the tool for first use but a tool that's >> already on the

Re: [PATCH libinput] tablet: ignore tools already in proximity at startup

2015-02-26 Thread Benjamin Tissoires
On Thu, Feb 26, 2015 at 12:05 AM, Peter Hutterer wrote: > Require a tool to be moved into proximity before we handle any events from it. > This requires the user to lift the tool for first use but a tool that's > already on the tablet on init is likely to send garbage anyway and interfere. > This

Re: [PATCH libinput 19/26] tablet: support z-rotation for the mouse/lens tool

2015-02-26 Thread Benjamin Tissoires
On Tue, Feb 24, 2015 at 1:21 AM, Peter Hutterer wrote: > Needs to be calculated from the x/y tilt values, the mouse has a fixed offset > of 175 degrees counterclockwise. > > Signed-off-by: Peter Hutterer > --- > src/evdev-tablet.c | 88 > +- >

Re: [PATCH v2 libinput 25/26] tablet: add libinput_tablet_get_axis_delta()

2015-02-26 Thread Benjamin Tissoires
On Wed, Feb 25, 2015 at 11:33 PM, Peter Hutterer wrote: > Signed-off-by: Peter Hutterer > --- > Changes to v2: > - delta was stored in tablet->axes[a], causing a wrong axis_value and a > wrong axis_delta. which the test didn' catch because it didn't trigger. > fixed now, store the wheel value in

Re: [PATCH libinput] evdev: ignore tablet pad devices explicitly

2015-02-26 Thread Benjamin Tissoires
On Thu, Feb 26, 2015 at 4:01 AM, Hans de Goede wrote: > Hi, > > On 26-02-15 07:02, Peter Hutterer wrote: >> >> We don't have real support for them yet but they have the ID_INPUT_TABLET >> tag >> set. Ignore them explicitly before someone thinks they're already working. >> >> Signed-off-by: Peter H

Re: [PATCH v2 libinput 00/26] tablet: support the remaining tools

2015-02-26 Thread Lyude
Alright, I've gone through all of the patches. The only bug I noticed was that buttons on erasers still don't register. I debugged this a little bit and found that libwacom doesn't parse the buttons value for erasers, so I've sent a patch for that to the libwacom mailing list :). Other then that, e

Re: [PATCH v2 libinput 24/26] tablet: support the rel wheel on the mouse device

2015-02-26 Thread Lyude
On Thu, 2015-02-26 at 14:33 +1000, Peter Hutterer wrote: > Providing a relative axis in the axis_get_value() is inconsistent with the > other axes, this will be fixed in a follow-up commit. > > Signed-off-by: Peter Hutterer > Reviewed-by: Benjamin Tissoires > --- > Changes to v1: > - s/break/con

Re: [PATCH libinput 16/26] tablet: add support for libinput_tool_has_button

2015-02-26 Thread Lyude
On Tue, 2015-02-24 at 16:21 +1000, Peter Hutterer wrote: > libwacom can tell us how many buttons we have per stylus, so we map those into > BTN_STYLUS and BTN_STYLUS2. > BTN_TOUCH is set on all styli. > > Signed-off-by: Peter Hutterer > --- > src/evdev-tablet.c | 73 > ++

Re: [PATCH libinput 09/26] tablet: add libinput_tool_get_tool_id()

2015-02-26 Thread Lyude
On Tue, 2015-02-24 at 16:21 +1000, Peter Hutterer wrote: > The tool ID on wacom tablets is what really defines the tool, so one can > differ between say an Intuos Grip Pen, Art Pen or Classic Pen. They're all > BTN_TOOL_PEN in the kernel driver. > > Signed-off-by: Peter Hutterer > --- > src/evde

Re: [Wayland1.5]Question about wl_shell_get_shell_surface

2015-02-26 Thread Manuel Bachmann
Hi Andy, Pekka, I think the question is more about the ICO Homescreen ("ico-uxf-homescreen" package under Tizen IVI) which is an extension for the Weston ivi-shell. ICO itself is outside of the scope of the Wayland project. Here is what I know (I am not an ICO developer, so if you are, feel free

Re: [PATCH libinput 11/26] tablet: use libwacom to identify tablets for left-handedness

2015-02-26 Thread sardemff7+wayland
On 2015-02-24 07:21, Peter Hutterer wrote: A tablet hotplug event is rare and not a time-critical event, so we load the database on tablet init and throw it away again. Signed-off-by: Peter Hutterer --- configure.ac | 14 ++ src/Makefile.am| 2 ++ src/

Re: [Wayland1.5]Question about wl_shell_get_shell_surface

2015-02-26 Thread Pekka Paalanen
On Thu, 26 Feb 2015 09:04:25 + Yang Andy wrote: > Hi everyone > > I have a question about wl_shell_get_shell_surface. > > 【NG Issue】When system launch QT-Application from ICO-HOME screen,it takes 4 > seconds before application is rendered. > > [Reference Module]ICO-HOMEMurphyweston-ivi-sh

Re: [PATCH] Enhance wayland-scanner so it can use files for input and output.

2015-02-26 Thread Bryce Harrington
On Thu, Feb 26, 2015 at 11:48:38AM +0200, Jussi Pakkanen wrote: > * Enhance wayland-scanner so it can use files for input and output > to improve flexibility and testability. > > Signed-off-by: Jussi Pakkanen Command line option handling is getting a bit stretched; if any more opti

Re: [PATCH weston 06/10] xdg-shell: Send an error when the client uses the not-topmost popup

2015-02-26 Thread Jonas Ådahl
On Thu, Feb 26, 2015 at 11:33:48AM +0200, Pekka Paalanen wrote: > On Thu, 26 Feb 2015 00:52:36 -0800 > "Jasper St. Pierre" wrote: > > > On Thu, Feb 26, 2015 at 12:48 AM, Jonas Ådahl wrote: > > > > > On Thu, Feb 26, 2015 at 09:59:21AM +0200, Pekka Paalanen wrote: > > > > On Fri, 13 Feb 2015 14:0

[PATCH] Enhance wayland-scanner so it can use files for input and output.

2015-02-26 Thread Jussi Pakkanen
* Enhance wayland-scanner so it can use files for input and output to improve flexibility and testability. Signed-off-by: Jussi Pakkanen --- src/scanner.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/src/scanner.c b/src/sc

Re: [PATCH weston 06/10] xdg-shell: Send an error when the client uses the not-topmost popup

2015-02-26 Thread Pekka Paalanen
On Thu, 26 Feb 2015 00:52:36 -0800 "Jasper St. Pierre" wrote: > On Thu, Feb 26, 2015 at 12:48 AM, Jonas Ådahl wrote: > > > On Thu, Feb 26, 2015 at 09:59:21AM +0200, Pekka Paalanen wrote: > > > On Fri, 13 Feb 2015 14:01:58 +0800 > > > Jonas Ådahl wrote: > > > > > > > From: "Jasper St. Pierre"

[Wayland1.5]Question about wl_shell_get_shell_surface

2015-02-26 Thread Yang Andy
Hi everyone I have a question about wl_shell_get_shell_surface. 【NG Issue】When system launch QT-Application from ICO-HOME screen,it takes 4 seconds before application is rendered. [Reference Module]ICO-HOMEMurphyweston-ivi-shellweston/waylandQTWayland 【TizenIVI Version】 tizen-3.0.m14.3-ivi

[PATCH weston v2] xdg-shell: Send an error when the client uses the not-topmost popup

2015-02-26 Thread Jonas Ådahl
From: "Jasper St. Pierre" Either in destroy or get_xdg_popup. [jadahl: Verify that the new popup is the top most when mapping instead of creating. Some renaming.] --- Changes since v1: Renamed get_top_xdg_popup to get_top_popup Removed the assert in get_top_popup Only verify top most require

Re: [PATCH libinput] evdev: ignore tablet pad devices explicitly

2015-02-26 Thread Hans de Goede
Hi, On 26-02-15 07:02, Peter Hutterer wrote: We don't have real support for them yet but they have the ID_INPUT_TABLET tag set. Ignore them explicitly before someone thinks they're already working. Signed-off-by: Peter Hutterer Looks good: Reviewed-by: Hans de Goede Regards, Hans ---

Re: [PATCH libinput 1/2] evdev: force-assign 10 slots to evdev devices

2015-02-26 Thread Hans de Goede
Hi, On 25-02-15 08:39, Peter Hutterer wrote: subject should be "evdev: force-assign 10 slots to mtdev devices" fixed locally. With that fixed both patches look good and are: Reviewed-by: Hans de Goede Regards, Hans Cheers, Peter On Wed, Feb 25, 2015 at 05:37:25PM +1000, Peter Hutt

Re: [PATCH weston 06/10] xdg-shell: Send an error when the client uses the not-topmost popup

2015-02-26 Thread Jasper St. Pierre
On Thu, Feb 26, 2015 at 12:48 AM, Jonas Ådahl wrote: > On Thu, Feb 26, 2015 at 09:59:21AM +0200, Pekka Paalanen wrote: > > On Fri, 13 Feb 2015 14:01:58 +0800 > > Jonas Ådahl wrote: > > > > > From: "Jasper St. Pierre" > > > > > > Either in destroy or get_xdg_popup. > > > > > > [jadahl: Verify th

Re: [PATCH weston 06/10] xdg-shell: Send an error when the client uses the not-topmost popup

2015-02-26 Thread Jonas Ådahl
On Thu, Feb 26, 2015 at 09:59:21AM +0200, Pekka Paalanen wrote: > On Fri, 13 Feb 2015 14:01:58 +0800 > Jonas Ådahl wrote: > > > From: "Jasper St. Pierre" > > > > Either in destroy or get_xdg_popup. > > > > [jadahl: Verify that the new popup is the top most when mapping instead > > of creating.

Re: [PATCH weston 06/10] xdg-shell: Send an error when the client uses the not-topmost popup

2015-02-26 Thread Pekka Paalanen
On Fri, 13 Feb 2015 14:01:58 +0800 Jonas Ådahl wrote: > From: "Jasper St. Pierre" > > Either in destroy or get_xdg_popup. > > [jadahl: Verify that the new popup is the top most when mapping instead > of creating. Some renaming.] > --- > desktop-shell/shell.c | 58 > +