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

2014-09-23 Thread Pekka Paalanen
On Tue, 23 Sep 2014 18:18:24 +0200 Karsten Otto wrote: > Am 22.09.2014 um 10:49 schrieb Pekka Paalanen : > > > On Thu, 11 Sep 2014 21:42:26 +0200 > > Karsten Otto wrote: > > > >> From: Philip Withnall > >> Date: Fri, 15 Feb 2013 12:57:05 + > >> > >> This happens if the socket has been gr

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

2014-09-23 Thread Pekka Paalanen
On Tue, 23 Sep 2014 15:34:07 +0200 Hardening wrote: > Le 23/09/2014 09:37, Pekka Paalanen a écrit : > > I believe some of the details here are only to cater for RDP, like > > non-enumerable modes. > > > I may be wrong but I remember a conversation where someone was telling > that DRM also have a

weston-launch failed to start up in system initialize phase.

2014-09-23 Thread Yang Andy
Hi everyone I have a question about weston-launch start up in system initialize phase. When i start up target device,weston-launch which is launch from systemd/service is crashed in system initialize phase. But i can run weston-launch correctly when i launch weston-launch from console termina

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

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. > >Thi

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

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen Signed-off-by: Pekka Paalanen v3 Reviewed-by: Mario Kleiner --- Makefile.am | 3 ++ clients/weston-info.c | 81 +++ 2 files changed, 84 insertions(+) diff --git a/Makefile.am b/Makefile.am index b1dcc21..6a91a8f 1

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

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen 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 backwards, assume it wrapped around onc

[PATCH 5/8] compositor: implement presentation_feedback

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen Implement the presentation.feedback request, and the presentation_feedback protocol interface. Feedback information is delivered to clients as the backend reports it, except the refresh counter (MSC) which is always reported as zero. Changes in v4: * add 'flags' argument to

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

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen 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] Signed-off-by: Pekka Paalanen Signed-of

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

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen --- 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 index 6a91a8f..87204a6 100644 ---

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

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen 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 commits, just gathering presentatio

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

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen Add accurate presentation timing features to Wayland: queueing and feedback. This specification is based on the draft written by Frederic Plourde and redesigned by Pekka Paalanen. The RFC v2 version is from http://lists.freedesktop.org/archives/wayland-devel/2014-January/0

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

2014-09-23 Thread Louis-Francis Ratté-Boulianne
From: Pekka Paalanen 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 queried the DRM about the clock i

[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 t

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 with

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 wrote: > In any case this all sounds excessively complicated. I think this will > work

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 wi

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 tim

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 wrote: > On Tue, Sep 23, 2014 at 8:35 AM, Pekka Paalanen > wrote: > > On Tue, 23 Sep 2014 13:59:39 +0800 > > Boyan Ding wrote: > > > >> On Mon, 2014-09-22 at 11:27 -0700, Jason Ekstrand wrote: > >> > >> > I'm a little unsure. I think trying to

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 IDE

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 m

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 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 : > On Thu, 11 Sep 2014 21:42:26 +0200 > Karsten Otto wrote: > >> From: Philip Withnall >> Date: Fri, 15 Feb 2013 12:57:05 + >> >> This happens if the socket has been gracefully closed. >> >> Signed-off-by: Philip Withnall >> Signed-off-by: K

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

2014-09-23 Thread Matthieu Gautier
Hello, I'm pretty new into wayland and the discussion is relatively long, so I may have missed arguments/constraints. However I would like to share my point of view. It seems to me that we are taking the problem the wrong way. Relative motions exist as soon as there is a device generating them

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 wrote: >> >>> On 22/09/14 06:41 AM, Pekka Paalanen wrote: On Fri, 19 Sep 2014 14:43:23 -0500 Derek Foreman wrote: > Calling weston_outpu

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 wrote: > On Tue, 23 Sep 2014 13:59:39 +0800 > Boyan Ding 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 truly make strongly t

Re: ivi shell roadmap/intercept.

2014-09-23 Thread Daniel Stone
Hi Tom, On 23 September 2014 14:15, Counihan, Tom 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 working on this extension

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 wrote: > >> On 22/09/14 06:41 AM, Pekka Paalanen wrote: >>> On Fri, 19 Sep 2014 14:43:23 -0500 >>> Derek Foreman wrote: >>> Calling weston_output_mode_switch() with WESTON_MODE_SWITCH_RESTORE_

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 Limite

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 wrote: > Signed-off-by: Jonas Ådahl > --- > 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 > @@ -884,7 +884,6 @@ emit_

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 wrote: > On 22/09/14 06:41 AM, Pekka Paalanen wrote: > > On Fri, 19 Sep 2014 14:43:23 -0500 > > Derek Foreman wrote: > > > >> Calling weston_output_mode_switch() with WESTON_MODE_SWITCH_RESTORE_NATIVE > >> will result in the mode being set "back"

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 wrote: > On Mon, Sep 22, 2014 at 12:52 PM, Jonas Ådahl 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 > > > wrote: > > > > > > > On Sat, 20 Sep 2014 11:43:22 -