Re: [PATCH weston 0/6] Clean-up, doc, and bug fix patches

2015-02-25 Thread Pekka Paalanen
On Wed, 25 Feb 2015 13:03:46 -0800 Bryce Harrington wrote: > > --- a/src/compositor.c > > +++ b/src/compositor.c > > @@ -1078,22 +1078,21 @@ weston_view_assign_output(struct weston_view *ev) > > } > > > > static void > > -view_compute_bbox(struct weston_view *view, int32_t sx, int32_t sy, > >

[PATCH libinput] evdev: ignore tablet pad devices explicitly

2015-02-25 Thread Peter Hutterer
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 --- src/evdev.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/evdev.c

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

2015-02-25 Thread Peter Hutterer
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 way users can leave the mouse/pen on the tablet overnight and the

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

2015-02-25 Thread Peter Hutterer
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 deltas and leave axes at 0 src/evdev-tablet.c | 56 +++

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

2015-02-25 Thread Peter Hutterer
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/continue/ in tablet_check_notify_axes - move the mouse wheel test into a sep

[PATCH v2 libinput 27/26] test: add tablet wheel test

2015-02-25 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- New patch, I had to re-do the test because it never actually triggered. So rather than complicated rebasing, this is the final test with everything including discrete values. New test sends more than one wheel event and then a couple of axis events after to make

Re: [PATCH libinput 21/26] tablet: support artpen rotation

2015-02-25 Thread Peter Hutterer
On Wed, Feb 25, 2015 at 05:30:21PM -0800, Jason Gerecke wrote: > > On 2/23/2015 10:21 PM, Peter Hutterer wrote: > >Signed-off-by: Peter Hutterer > >--- > > src/evdev-tablet.c | 35 +++- > > src/evdev-tablet.h | 6 > > src/libinput.h | 3 +- > > test/tablet.c | 95

Re: [PATCH libinput 23/26] tools: only print the tablet axes we have on the tool

2015-02-25 Thread Peter Hutterer
On Wed, Feb 25, 2015 at 05:31:00PM -0800, Jason Gerecke wrote: > > On 2/23/2015 10:21 PM, Peter Hutterer wrote: > >This doesn't really have an effect, since we don't set the per-tool axes > >correctly yet. > > > >Signed-off-by: Peter Hutterer > >--- > > tools/event-debug.c | 106 > > +++

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

2015-02-25 Thread Jason Gerecke
On 2/23/2015 10:21 PM, Peter Hutterer wrote: This is a v2 of the patchset here http://lists.freedesktop.org/archives/wayland-devel/2015-February/020036.html but reshuffled, rebased and a couple of things merged in. Notable: libinput now uses libwacom to get tool/tablet information. This is compl

Re: [PATCH libinput 12/26] tablet: explicitly ignore ABS_THROTTLE, ABS_RX, ABS_RY, and ABS_RZ

2015-02-25 Thread Peter Hutterer
On Wed, Feb 25, 2015 at 05:29:49PM -0800, Jason Gerecke wrote: > > On 2/23/2015 10:21 PM, Peter Hutterer wrote: > >ABS_THROTTLE: > > Tablets still advertise this axis but the mouse itself isn't available > > anymore. The Pad sends the second wheel as ABS_THROTTLE but that's a > > task

Re: [PATCH libinput 23/26] tools: only print the tablet axes we have on the tool

2015-02-25 Thread Jason Gerecke
On 2/23/2015 10:21 PM, Peter Hutterer wrote: This doesn't really have an effect, since we don't set the per-tool axes correctly yet. Signed-off-by: Peter Hutterer --- tools/event-debug.c | 106 +++- 1 file changed, 56 insertions(+), 50 deletio

Re: [PATCH libinput 21/26] tablet: support artpen rotation

2015-02-25 Thread Jason Gerecke
On 2/23/2015 10:21 PM, Peter Hutterer wrote: Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 35 +++- src/evdev-tablet.h | 6 src/libinput.h | 3 +- test/tablet.c | 95 ++ 4 files changed, 130 inser

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

2015-02-25 Thread Jason Gerecke
On 2/23/2015 10:21 PM, 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 +- src/libinput-private.

Re: [PATCH libinput 12/26] tablet: explicitly ignore ABS_THROTTLE, ABS_RX, ABS_RY, and ABS_RZ

2015-02-25 Thread Jason Gerecke
On 2/23/2015 10:21 PM, Peter Hutterer wrote: ABS_THROTTLE: Tablets still advertise this axis but the mouse itself isn't available anymore. The Pad sends the second wheel as ABS_THROTTLE but that's a task for the buttonset interface. Explanation of what the throttle

Re: [PATCH weston 0/6] Clean-up, doc, and bug fix patches

2015-02-25 Thread Bryce Harrington
On Wed, Feb 25, 2015 at 03:48:55PM +0200, Pekka Paalanen wrote: > From: Pekka Paalanen > > These are independent tiny patches I have accumulated in my > development tree, all stemming from trying to understand how > Weston's region tracking works. > > Pekka Paalanen (6): > compositor: document

Re: [PATCH weston 5/6] compositor: let view_compute_bbox() take a box32_t

2015-02-25 Thread Bryce Harrington
On Wed, Feb 25, 2015 at 03:49:00PM +0200, Pekka Paalanen wrote: > From: Pekka Paalanen > > There are two call sites, one is already having a pixman_box32_t it > needs to call view_compute_bbox() with. The other call site will have a > box32_t when view clipping gets implemented. > > Change view_

Re: [PATCH 1/3] wayland.xml: fixed a typo

2015-02-25 Thread Bryce Harrington
On Wed, Feb 25, 2015 at 03:03:33PM +0100, David FORT wrote: > From: Hardening > > --- > protocol/wayland.xml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Pushed this trivial fix. f3a5ca9..99d2775 master -> master > diff --git a/protocol/wayland.xml b/protocol/wayland.xml > in

Re: [PATCH weston 1/4] gl-renderer: use eglGetPlatformDisplayEXT to get an EGLDisplay

2015-02-25 Thread Daniel Stone
Hi, On 25 February 2015 at 12:42, Jonny Lamb wrote: > +/** Checks whether a client extension or fallbacks are supported > + * > + * \param ec The weston compositor > + * \param extension_suffix The EGL client extension suffix > + * \return Negative if not supported, otherwise positive > + * > + *

Re: [PATCH weston 1/4] gl-renderer: use eglGetPlatformDisplayEXT to get an EGLDisplay

2015-02-25 Thread Derek Foreman
Series looks good to me now. Reviewed-by: Derek Foreman On 25/02/15 06:42 AM, Jonny Lamb wrote: > --- > src/compositor-drm.c | 13 +- > src/compositor-fbdev.c | 2 +- > src/compositor-wayland.c | 20 +++-- > src/compositor-x11.c | 11 - > src/gl-renderer.c| 10

[PATCH 0/3][RFC] introducing inert objects to allow to release server-side objects

2015-02-25 Thread David FORT
This serie of patches tries to address the problem of removing a seat and really deleting it server-side. First I have added the corresponding method in the protocol definition. Second I have modified the scanner to emit some code to create inert objects: objects with requests that do nothing, a

[PATCH 2/3] Modify wayland-scanner to generate inert objects

2015-02-25 Thread David FORT
As stated in the very good blog post[1] of Pekka Paalanen, server-side we can have sometime troubles with object that the server has deleted but that the client is still requesting. This patch complements the scanner to create some code that will return inert objects, ie objects that will do nothi

[PATCH 3/3] Add a release request on wl_seat

2015-02-25 Thread David FORT
This is required if we want to correctly remove a wl_seat server-side. --- protocol/wayland.xml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 4fb8035..8f63ebf 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -1400,6 +1400

[PATCH 1/3] wayland.xml: fixed a typo

2015-02-25 Thread David FORT
From: Hardening --- protocol/wayland.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 2a49805..4fb8035 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -1389,7 +1389,7 @@ - +

[PATCH weston 6/6] compositor: fix plane coords in view_accumulate_damage()

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen All things everywhere, except this one case, assume weston_plane::damage is in global coordinates. Document it. view_accumulate_damage() is wrong in converting damage to plane coordinates (similar to global coordinate except translated). Fix this by removing the unwanted tra

[PATCH weston 2/6] compositor: note, weston_surface_damage does it wrong

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen The fix is not trivial, so I want to document the problem before I forget about it again. Signed-off-by: Pekka Paalanen --- src/compositor.c | 10 ++ src/compositor.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/compositor.c b/src/compositor.c inde

[PATCH weston 5/6] compositor: let view_compute_bbox() take a box32_t

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen There are two call sites, one is already having a pixman_box32_t it needs to call view_compute_bbox() with. The other call site will have a box32_t when view clipping gets implemented. Change view_compute_bbox() to take a pixman_box32_t as the input argument, and convert cal

[PATCH weston 3/6] compositor: remove dead code from weston_output_move()

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen Also fixes a theoretical memory leak as the region was never fini'd. Signed-off-by: Pekka Paalanen --- src/compositor.c | 4 1 file changed, 4 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index b1970cd..abc42e8 100644 --- a/src/compositor.c +++ b/src

[PATCH weston 4/6] compositor: weston_output::region is in global coords

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen Add a comment saying it is. I'm not aware of misuses of it. Signed-off-by: Pekka Paalanen --- src/compositor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor.h b/src/compositor.h index 76af451..57b671d 100644 --- a/src/compositor.h +++ b/src/composit

[PATCH weston 1/6] compositor: document view->transform.* regions

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen Signed-off-by: Pekka Paalanen --- src/compositor.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/compositor.h b/src/compositor.h index 2d70ad1..c942365 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -802,6 +802,12 @@ struct weston_view { str

[PATCH weston 0/6] Clean-up, doc, and bug fix patches

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen These are independent tiny patches I have accumulated in my development tree, all stemming from trying to understand how Weston's region tracking works. Pekka Paalanen (6): compositor: document view->transform.* regions compositor: note, weston_surface_damage does it wro

Re: [PATCH weston v2 7/7] pixman-renderer: implement surface_copy_content

2015-02-25 Thread Pekka Paalanen
On Wed, 25 Feb 2015 11:58:43 + Daniel Stone wrote: > Hi, > > On 25 February 2015 at 11:11, Pekka Paalanen > wrote: > > this series is also available at: > > http://cgit.collabora.com/git/user/pq/weston.git/log/?h=surface-shot-2 > > > > The main change since v1 is removing the stride and pix

[PATCH weston 2/4] clients & tests: use eglGetPlatformDisplayEXT when supported

2015-02-25 Thread Jonny Lamb
--- clients/nested-client.c | 36 +++- clients/simple-egl.c | 30 +- clients/subsurfaces.c | 35 ++- clients/window.c | 34 +- tests/buffer-count-test.c |

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

2015-02-25 Thread Jonny Lamb
--- 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-renderer.h| 3 ++- 6 files changed, 48 insertions(+), 8 deletions

[PATCH weston 1/4] gl-renderer: use eglGetPlatformDisplayEXT to get an EGLDisplay

2015-02-25 Thread Jonny Lamb
--- src/compositor-drm.c | 13 +- src/compositor-fbdev.c | 2 +- src/compositor-wayland.c | 20 +++-- src/compositor-x11.c | 11 - src/gl-renderer.c| 109 +-- src/gl-renderer.h| 6 ++- 6 files changed, 151 ins

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

2015-02-25 Thread Jonny Lamb
--- clients/nested-client.c | 22 ++ clients/simple-egl.c | 22 ++ clients/subsurfaces.c | 22 +++--- clients/window.c | 22 ++ tests/buffer-count-test.c | 25 - 5 files changed,

Re: [PATCH weston v2 7/7] pixman-renderer: implement surface_copy_content

2015-02-25 Thread Daniel Stone
Hi, On 25 February 2015 at 11:11, Pekka Paalanen wrote: > this series is also available at: > http://cgit.collabora.com/git/user/pq/weston.git/log/?h=surface-shot-2 > > The main change since v1 is removing the stride and pixel format > arguments from the copy_content API. These are now documented

Re: [PATCH weston v2 7/7] pixman-renderer: implement surface_copy_content

2015-02-25 Thread Pekka Paalanen
On Wed, 25 Feb 2015 13:06:03 +0200 Pekka Paalanen wrote: > From: Pekka Paalanen > > Changes in v2: > - remove stride and format arguments from the API > > Signed-off-by: Pekka Paalanen > v1 Tested-by: Nobuhiko Tanibata > --- > src/pixman-renderer.c | 52 > ++

[PATCH weston v2 2/7] shared: add file_create_dated() helper

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen For easy creation of unique new files. I'm looking at you, screenshooter. This code is based on timeline.c weston_timeline_do_open(). Signed-off-by: Pekka Paalanen Tested-by: Nobuhiko Tanibata Reviewed-by: Daniel Stone --- Makefile.am| 2 + shared/file-util.c

[PATCH weston v2 1/7] compositor: add surface-shooting API

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen This is an optional API that will be implemented by the renderers. It allows to fetch the current contents of a surface, essentially the buffer contents from a client buffer, converted to an RGBA format. This is meant as a debugging API. The implementations may be heavy and

[PATCH weston v2 6/7] gl-renderer: implement surface_copy_content

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen Taking the easy way, always do a rendering pass when copying any real buffer or texture. Will handle YUV formats, and makes it easy to always return data the right y-direction up. All the FBO GL state is created and torn down on every invocation, so this is a pretty naive im

[PATCH weston v2 7/7] pixman-renderer: implement surface_copy_content

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen Changes in v2: - remove stride and format arguments from the API Signed-off-by: Pekka Paalanen v1 Tested-by: Nobuhiko Tanibata --- src/pixman-renderer.c | 52 +++ 1 file changed, 52 insertions(+) diff --git a/src/pixman-ren

[PATCH weston v2 5/7] gl-renderer: add BUFFER_TYPE_SOLID

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen Add a new buffer type identifying the solid color contents which do not have a real buffer. Solid color surfaces now pretend to have 1x1 pixel content data. This helps the future surface_get_data_size() implementation. Signed-off-by: Pekka Paalanen Tested-by: Nobuhiko Tan

[PATCH weston v2 4/7] surface-screenshot: a new manual test module

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen Add a new Weston plugin under tests/ for manual testing of the surface-shooting API. The debug key binding 'h' triggers a surface shot from the surface that currently has the pointer focus. The shot is written in PAM format into a file. PAM format was chosen because it is de

[PATCH weston v2 3/7] timeline: use file_create_dated() helper

2015-02-25 Thread Pekka Paalanen
From: Pekka Paalanen Use shared code for this kind of stuff. Signed-off-by: Pekka Paalanen Tested-by: Nobuhiko Tanibata Reviewed-by: Daniel Stone --- src/timeline.c | 37 - 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/src/timeline.c b/sr

Re: [PATCH weston 1/4] gl-renderer: use eglGetPlatformDisplayEXT to get an EGLDisplay

2015-02-25 Thread Jonny Lamb
Il 23/02/2015 18:44, Derek Foreman ha scritto: - if (gl_renderer->create(&compositor->base, EGL_DEFAULT_DISPLAY, + if (gl_renderer->create(&compositor->base, 0, EGL_DEFAULT_DISPLAY, gl_renderer->opaque_attribs,