Re: [PATCH V2] wayland.xml: add enum, bitfield and is_bitfield attributes

2014-09-23 Thread Boyan Ding
On Mon, 2014-09-22 at 11:27 -0700, Jason Ekstrand wrote: I'm a little unsure. I think trying to completely solve this problem in a way that will truly make strongly typed languages happy is insanity. That said, I'm cautiously ok with defining bitfields and enums as long as we are very

[PATCH libinput 3/4] touchpad: hook up left-handed configuration

2014-09-23 Thread Peter Hutterer
Tapping and clickfinger is unaffected, physical and software buttons are swapped. The main area of a clickpad remains as left button though. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad-buttons.c | 17 - src/evdev-mt-touchpad.c | 19

[PATCH libinput 1/4] Add configuration option for left-handed behavior

2014-09-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput-private.h | 8 ++ src/libinput.c | 37 src/libinput.h | 78 ++ 3 files changed, 123 insertions(+) diff --git

[PATCH libinput 2/4] evdev: hook up left-handed configuration option

2014-09-23 Thread Peter Hutterer
Two separate flags needed, want_left_handed and left_handed to avoid switching to left_handed while a button is still down. Since each backend has a different way of determining whether buttons are down, let them set a function to do exactly that. Then call that function whenever a button release

[PATCH libinput 4/4] test: add some left-handed tests

2014-09-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/pointer.c | 128 test/touch.c| 23 + test/touchpad.c | 306 3 files changed, 457 insertions(+) diff --git a/test/pointer.c b/test/pointer.c

Re: [PATCH libinput 3/3] touchpad: Disable touchpads on trackpoint activity

2014-09-23 Thread Peter Hutterer
On Mon, Sep 22, 2014 at 09:22:02AM +0200, Hans de Goede wrote: Hi, On 09/22/2014 07:18 AM, Peter Hutterer wrote: On Thu, Sep 18, 2014 at 01:11:05PM +0200, Hans de Goede wrote: Some laptops with both a clickpad and a trackpoint have such a large touchpad, that parts of the users hands

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Pekka Paalanen
On Mon, 22 Sep 2014 18:36:23 -0700 Jason Ekstrand ja...@jlekstrand.net wrote: On Mon, Sep 22, 2014 at 12:52 PM, Jonas Ådahl jad...@gmail.com wrote: On Mon, Sep 22, 2014 at 11:31:27AM -0700, Jason Ekstrand wrote: On Sun, Sep 21, 2014 at 11:43 PM, Pekka Paalanen ppaala...@gmail.com

Re: [PATCH] shell: fix weston_output_mode_switch() usage

2014-09-23 Thread Pekka Paalanen
On Mon, 22 Sep 2014 11:01:10 -0500 Derek Foreman der...@osg.samsung.com wrote: On 22/09/14 06:41 AM, Pekka Paalanen wrote: On Fri, 19 Sep 2014 14:43:23 -0500 Derek Foreman der...@osg.samsung.com wrote: Calling weston_output_mode_switch() with WESTON_MODE_SWITCH_RESTORE_NATIVE will

Re: [PATCH wayland 2/2] scanner: Remove stray newline

2014-09-23 Thread Pekka Paalanen
On Mon, 22 Sep 2014 22:11:19 +0200 Jonas Ådahl jad...@gmail.com wrote: Signed-off-by: Jonas Ådahl jad...@gmail.com --- src/scanner.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index 6be1d7a..809130b 100644 --- a/src/scanner.c +++ b/src/scanner.c @@

ivi shell roadmap/intercept.

2014-09-23 Thread Counihan, Tom
Hi Folks, I'm hoping some folks here could give me some insight into when the ivi shell could hope to intercept an official Wayland release? Is there any tentative roadmap dates for intercept? Warm Regards Tom. -- Intel Shannon

Re: [PATCH] shell: fix weston_output_mode_switch() usage

2014-09-23 Thread Hardening
Le 23/09/2014 09:37, Pekka Paalanen a écrit : On Mon, 22 Sep 2014 11:01:10 -0500 Derek Foreman der...@osg.samsung.com wrote: On 22/09/14 06:41 AM, Pekka Paalanen wrote: On Fri, 19 Sep 2014 14:43:23 -0500 Derek Foreman der...@osg.samsung.com wrote: Calling weston_output_mode_switch() with

Re: ivi shell roadmap/intercept.

2014-09-23 Thread Daniel Stone
Hi Tom, On 23 September 2014 14:15, Counihan, Tom tom.couni...@intel.com wrote: I'm hoping some folks here could give me some insight into when the ivi shell could hope to intercept an official Wayland release? Is there any tentative roadmap dates for intercept? Tanibata-san has been

Re: [PATCH V2] wayland.xml: add enum, bitfield and is_bitfield attributes

2014-09-23 Thread Nils Chr. Brause
On Tue, Sep 23, 2014 at 8:35 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Tue, 23 Sep 2014 13:59:39 +0800 Boyan Ding stu_...@126.com wrote: On Mon, 2014-09-22 at 11:27 -0700, Jason Ekstrand wrote: I'm a little unsure. I think trying to completely solve this problem in a way that will

Re: [PATCH] shell: fix weston_output_mode_switch() usage

2014-09-23 Thread Derek Foreman
On 23/09/14 08:34 AM, Hardening wrote: Le 23/09/2014 09:37, Pekka Paalanen a écrit : On Mon, 22 Sep 2014 11:01:10 -0500 Derek Foreman der...@osg.samsung.com wrote: On 22/09/14 06:41 AM, Pekka Paalanen wrote: On Fri, 19 Sep 2014 14:43:23 -0500 Derek Foreman der...@osg.samsung.com wrote:

Re: [PATCH 3/4] wayland-server: Abort if a read from a client gives 0 length

2014-09-23 Thread Karsten Otto
Am 22.09.2014 um 10:49 schrieb Pekka Paalanen ppaala...@gmail.com: On Thu, 11 Sep 2014 21:42:26 +0200 Karsten Otto karsten.o...@posteo.de wrote: From: Philip Withnall phi...@tecnocode.co.uk Date: Fri, 15 Feb 2013 12:57:05 + This happens if the socket has been gracefully closed.

Re: [PATCH V2] wayland.xml: add enum, bitfield and is_bitfield attributes

2014-09-23 Thread Bill Spitzak
On 09/23/2014 08:17 AM, Nils Chr. Brause wrote: Having more than the power-of-two values listed isn't a problem in my opinion. I see these extra values as some sort of shortcuts for often used OR-combinations. That is what I was thinking too. A bitfield can be treated identically to an enum.

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Bill Spitzak
On 09/23/2014 09:01 AM, Matthieu Gautier wrote: In fact, we may have a system where we have relative motion events but no wl_pointer. Think about a smart tv with a remote control with accelerator/gyroscope detectors. This remote may behave as a mouse, generating relative motion events. But the

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Bill Spitzak
In any case this all sounds excessively complicated. I think this will work: - Client can create a pointer_lock object from an wl_pointer. This takes a serial of an event so the compositor can decide whether it should be allowed by the event. - Motion and push/release events still come in

Re: [PATCH V2] wayland.xml: add enum, bitfield and is_bitfield attributes

2014-09-23 Thread Jason Ekstrand
On Tue, Sep 23, 2014 at 8:17 AM, Nils Chr. Brause nilschrbra...@gmail.com wrote: On Tue, Sep 23, 2014 at 8:35 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Tue, 23 Sep 2014 13:59:39 +0800 Boyan Ding stu_...@126.com wrote: On Mon, 2014-09-22 at 11:27 -0700, Jason Ekstrand wrote:

Re: [PATCH V2] wayland.xml: add enum, bitfield and is_bitfield attributes

2014-09-23 Thread Bill Spitzak
On 09/23/2014 02:19 PM, Jason Ekstrand wrote: In this case, what is the point of making the distinction? Why not just specify everything as a bitfield? What do you gain from knowing that two things will never be ORed together? It is to make any attempt to or them together fail at compile

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Jason Ekstrand
Hi Matthieu, Could you please provide more explanation on what use-cases you are considering and why the current proposal fails to accomplish them? All I was able to get from your post was the example of a TV remote. It's all well and good to completely disagree with the proposed approach, but

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Jason Ekstrand
Bill, That's an interesting idea, but there are a few problems (which may be solvable). I do kind of like the way it completely sidesteps the acceleration issue. On Tue, Sep 23, 2014 at 12:43 PM, Bill Spitzak spit...@gmail.com wrote: In any case this all sounds excessively complicated. I think

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Bill Spitzak
On 09/23/2014 03:15 PM, Jason Ekstrand wrote: Bill, That's an interesting idea, but there are a few problems (which may be solvable). I do kind of like the way it completely sidesteps the acceleration issue. Thanks This won't quite work. There is no such thing as an infinite datatype

[PATCH 0/8] Wayland Presentation Extension v5

2014-09-23 Thread Louis-Francis Ratté-Boulianne
Hi, Here is an update to the Wayland Presentation Extension. For context, please refer to the last thread about the extension: http://lists.freedesktop.org/archives/wayland-devel/2014-September/017278.html Differences compared to the last proposal (v4) are: * Remove the 'destroy' method from

[PATCH 1/8] protocol: add presentation extension v5

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen pekka.paala...@collabora.co.uk Add accurate presentation timing features to Wayland: queueing and feedback. This specification is based on the draft written by Frederic Plourde frederic.plou...@collabora.co.uk and redesigned by Pekka Paalanen. The RFC v2 version is from

[PATCH 4/8] compositor: set and use the presentation clock everywhere

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen pekka.paala...@collabora.co.uk Add presentation clock setters that verify the given clock actually works. Offer an automatic choice of a software fallback clock, when a backend has to always use clock_gettime() to approximate the presentation time. The DRM backend already

[PATCH 8/8] clients: add presentation-shm demo

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen pekka.paala...@collabora.co.uk This started as a copy of simple-shm.c before it was converted to xdg_shell. This demo excercises the presentation feedback interface in five different modes: - A continuous repaint loop triggered by frame callbacks, and using immediate

[PATCH 2/8] compositor: add stub implementation of presentation interface

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen pekka.paala...@collabora.co.uk You can bind to the global interface, and it delivers a fake clock id. All requests on it raise an error. Changes in v4: * queuing methods were extractracted for a later series [Louis-Francis Ratté-Boulianne: split queuing feature]

[PATCH 7/8] tests: presentation test, simple

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen pekka.paala...@collabora.co.uk --- Makefile.am | 8 ++ tests/presentation-test.c | 246 ++ 2 files changed, 254 insertions(+) create mode 100644 tests/presentation-test.c diff --git a/Makefile.am b/Makefile.am

[PATCH 3/8] weston-info: report presentation clock

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen pekka.paala...@collabora.co.uk Signed-off-by: Pekka Paalanen pekka.paala...@collabora.co.uk v3 Reviewed-by: Mario Kleiner mario.kleiner...@gmail.com --- Makefile.am | 3 ++ clients/weston-info.c | 81 +++ 2 files

[PATCH 6/8] compositor-drm: deliver frame seq for feedback

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen pekka.paala...@collabora.co.uk Add 'msc' field to weston_output to maintain the refresh counter, and use it in presentation_feedback.presented. Make compositor-drm update the per-output refresh counter with the values reported by DRM. If the DRM reported value jumps

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Peter Hutterer
On Tue, Sep 23, 2014 at 11:51:16AM -0700, Bill Spitzak wrote: On 09/23/2014 09:01 AM, Matthieu Gautier wrote: In fact, we may have a system where we have relative motion events but no wl_pointer. Think about a smart tv with a remote control with accelerator/gyroscope detectors. This remote

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Peter Hutterer
On Tue, Sep 23, 2014 at 04:50:19PM -0700, Bill Spitzak wrote: On 09/23/2014 03:15 PM, Jason Ekstrand wrote: Bill, That's an interesting idea, but there are a few problems (which may be solvable). I do kind of like the way it completely sidesteps the acceleration issue. Thanks This