[PATCH weston v2 1/3] compositor: introduce structs to handle backends configuration

2015-10-19 Thread Giulio Camuffo
This commit introduces the structs weston_backend_config and weston_backend_output_config, to prepare for the new config system for the backends. --- v2: use uints for the width and height src/compositor.h | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-

Re: Unstable protocol name breakage

2015-10-19 Thread Jasper St. Pierre
On Mon, Oct 19, 2015 at 7:22 PM, Jonas Ådahl wrote: > Hi again, ... snip ... > xdg-shell.xml: Should we bite the bullet and rename this one, or just continue > letting its stability state be non-discoverable? It's clearly already used, > and > renaming it will be painful, so not sure about this

Re: [PATCH weston] Support axis source, axis discreet, axis frame and axis stop events

2015-10-19 Thread Bryce Harrington
On Tue, Oct 20, 2015 at 09:19:59AM +0800, Jonas Ådahl wrote: > On Mon, Oct 19, 2015 at 06:17:31PM -0700, Bryce Harrington wrote: > > On Fri, Oct 16, 2015 at 12:39:22PM +1000, Peter Hutterer wrote: > > > Signed-off-by: Peter Hutterer > > > --- > > > The client-side is the simplest implementation he

Re: Unstable protocol name breakage

2015-10-19 Thread Mariusz Ceier
On 20 October 2015 at 05:59, Jonas Ådahl wrote: > On Tue, Oct 20, 2015 at 05:26:45AM +0200, Mariusz Ceier wrote: > > Hi, > > > > On 20 October 2015 at 04:22, Jonas Ådahl wrote: > > > > > Hi again, > > > > > > I was about to start migrating generic protocols away from weston into > > > wayland-pr

Re: Unstable protocol name breakage

2015-10-19 Thread Jonas Ådahl
On Tue, Oct 20, 2015 at 05:26:45AM +0200, Mariusz Ceier wrote: > Hi, > > On 20 October 2015 at 04:22, Jonas Ådahl wrote: > > > Hi again, > > > > I was about to start migrating generic protocols away from weston into > > wayland-protocols. The idea was to start with input-method.xml, text.xml, >

Re: Unstable protocol name breakage

2015-10-19 Thread Mariusz Ceier
Hi, On 20 October 2015 at 04:22, Jonas Ådahl wrote: > Hi again, > > I was about to start migrating generic protocols away from weston into > wayland-protocols. The idea was to start with input-method.xml, text.xml, > linux-dmabuf.xml, presentation_timing.xml, scaler.xml and xdg-shell.xml. > The

Unstable protocol name breakage

2015-10-19 Thread Jonas Ådahl
Hi again, I was about to start migrating generic protocols away from weston into wayland-protocols. The idea was to start with input-method.xml, text.xml, linux-dmabuf.xml, presentation_timing.xml, scaler.xml and xdg-shell.xml. The question, however, is what to do with the names, because some name

[PATCH wayland v3] shm: Add shm_buffer ref and shm_pool unref functions

2015-10-19 Thread Derek Foreman
Sometimes the compositor wants to make sure a shm pool doesn't disappear out from under it. For example, in Enlightenment, rendering happens in a separate thread while the main thread can still dispatch events. If a client is destroyed during rendering, all its resources are cleaned up and its sh

Re: [PATCH v2 wayland] shm: Add shm_buffer ref and shm_pool unref functions

2015-10-19 Thread Derek Foreman
On 16/10/15 08:34 AM, Pekka Paalanen wrote: > On Mon, 5 Oct 2015 13:12:12 -0500 > Derek Foreman wrote: > >> Sometimes the compositor wants to make sure a shm pool doesn't disappear >> out from under it. >> >> For example, in Enlightenment, rendering happens in a separate thread >> while the main

Re: [PATCH v2 libinput] Fix premature flushing of evdev event on mx4 touchscreen

2015-10-19 Thread Peter Hutterer
sorry for the delay, travelling and only slowly catching up with email. On Mon, Sep 07, 2015 at 09:57:44PM +0200, Andreas Pokorny wrote: > The mx4 touchscreen driver emits BTN_TOUCH and BTN_TOOL_FINGER key events > on a new contact. Prior to this patch only the BTN_TOUCH event was filtered > out.

Re: [PATCH weston] Support axis source, axis discreet, axis frame and axis stop events

2015-10-19 Thread Jonas Ådahl
On Mon, Oct 19, 2015 at 06:17:31PM -0700, Bryce Harrington wrote: > On Fri, Oct 16, 2015 at 12:39:22PM +1000, Peter Hutterer wrote: > > Signed-off-by: Peter Hutterer > > --- > > The client-side is the simplest implementation here, and I went the easy > > route since most clients won't care to regi

Re: [PATCH weston] Support axis source, axis discreet, axis frame and axis stop events

2015-10-19 Thread Bryce Harrington
On Fri, Oct 16, 2015 at 12:39:22PM +1000, Peter Hutterer wrote: > Signed-off-by: Peter Hutterer > --- > The client-side is the simplest implementation here, and I went the easy > route since most clients won't care to register a multitude of handlers for > axis events. > > The eventdemo client me

Re: [PATCH weston 2/3] compositor: pass the backend config struct to the backends init function

2015-10-19 Thread Bryce Harrington
On Sat, Oct 17, 2015 at 07:24:14PM +0300, Giulio Camuffo wrote: > Add new configuration argument to the backend_init() function, which > will replace the current argc, argv, and config arguments. > After each backend is converted individually the unused parameters > will be removed. Thanks for bre

Re: [PATCH weston 3/3] main: stub the functions to load the backends with the new config system

2015-10-19 Thread Bryce Harrington
On Sat, Oct 17, 2015 at 07:24:15PM +0300, Giulio Camuffo wrote: > --- > src/main.c | 68 > +- > 1 file changed, 59 insertions(+), 9 deletions(-) Reviewed-by: Bryce Harrington > diff --git a/src/main.c b/src/main.c > index 11ade46..8c

Re: [PATCH weston 1/3] compositor: introduce structs to handle backends configuration

2015-10-19 Thread Bryce Harrington
On Sat, Oct 17, 2015 at 07:24:13PM +0300, Giulio Camuffo wrote: > This commit introduces the structs weston_backend_config and > weston_backend_output_config, to prepare for the new config > system for the backends. > --- > src/compositor.h | 36 ++-- > 1 file chang

Re: iio sensors, acceleration and gyro.

2015-10-19 Thread Peter Hutterer
On Mon, Oct 19, 2015 at 12:20:27PM -0500, Mike Mestnik wrote: > Hello, > I've been working on a project called iio-sensor-proxy, it's a > project to take sensor readings and make them available over dbus. I > feel that this takes away from the generic concept that everything is > a file. > > Do

[PATCH v2 1/4] doc: document the enum and bitfield attributes

2015-10-19 Thread Auke Booij
Introduce the enum and bitfield attributes, which allow you to refer to the enum you are expecting in an argument, and specify which enums are to be thought of as bitfields. Signed-off-by: Auke Booij --- doc/publican/sources/Protocol.xml | 35 +-- 1 file changed,

[PATCH v2 0/4] Enum and bitfield XML attributes

2015-10-19 Thread Auke Booij
There has been plenty of discussion regarding the introduction of new XML attributes. This series of patches improves on my earlier attempt to find common ground in this. Major exclusions from these patches are: - Support for cross-interface enum referencing (e.g. wl_shm_pool::create_buffer::form

[PATCH v2 4/4] doc: output enum and bitfield attributes in the documentation

2015-10-19 Thread Auke Booij
Signed-off-by: Auke Booij --- doc/publican/protocol-to-docbook.xsl | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl index 7b45969..fad207a 100644 --- a/doc/publican/protocol-to-docbook.xsl +++ b/doc/publican/

[PATCH v2 2/4] protocol: specify enum and bitfield attributes

2015-10-19 Thread Auke Booij
Signed-off-by: Auke Booij --- protocol/wayland.xml | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 59819e9..a3e6900 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -367,7 +36

[PATCH v2 3/4] scanner: enforce correct argument type for enums

2015-10-19 Thread Auke Booij
The scanner now checks whether arguments that have an associated have the right type. An argument with an enum attribute must be of type int or uint, and if the with that name has the bitfield attribute set to true, then the argument must be of type uint. Signed-off-by: Auke Booij --- src/scan

Re: [PATCH weston] clients: track seat_version per seat, not per display

2015-10-19 Thread Derek Foreman
Pushed Thanks, Derek On 15/10/15 02:30 AM, Pekka Paalanen wrote: > On Wed, 14 Oct 2015 20:57:35 +0200 > Hardening wrote: > >> Le 14/10/2015 16:39, Derek Foreman a écrit : >>> Apparently it's possible for a compositor to advertise seats with >>> different versions on the same connection, so this

iio sensors, acceleration and gyro.

2015-10-19 Thread Mike Mestnik
Hello, I've been working on a project called iio-sensor-proxy, it's a project to take sensor readings and make them available over dbus. I feel that this takes away from the generic concept that everything is a file. Does this code perhaps have a better home in libinput? https://github.com/had

Re: [RFC] weston: implement inert objects for keyboard/pointer/touch

2015-10-19 Thread Michal Suchanek
Hello, On 19 October 2015 at 15:47, David FORT wrote: > This is the second version. I have restored the ref counting of input devices, > I think with the name weston_seat_init_pointer is not accurate, perhaps > weston_seat_add_pointer_device would be better. I'm really wondering if it's > the wes

[RFC] weston: implement inert objects for keyboard/pointer/touch

2015-10-19 Thread David FORT
This is the second version. I have restored the ref counting of input devices, I think with the name weston_seat_init_pointer is not accurate, perhaps weston_seat_add_pointer_device would be better. I'm really wondering if it's the weston core that should do that refcounting, or if the input backe

[PATCH] weston: implement inert objects for keyboard/pointer/touch

2015-10-19 Thread David FORT
This patch implements inert objects for wl_keyboard, wl_pointer and wl_touch. The target case is when the server has just send a capability event about a disappearing object, and the client binds the corresponding object. We bind an inert object: an object does nothing when it is requested. If the

Re: [PATCH weston] input: use doubles in the interfaces to notify of input events

2015-10-19 Thread Giulio Camuffo
Hi, send-email continues to be broken so here's the v2: - remove unneded casts - avoid naming absolute variables dx/dy -- Giulio 2015-10-19 4:49 GMT+03:00 Jonas Ådahl : > On Sat, Oct 17, 2015 at 06:07:06PM +0300, Giulio Camuffo wrote: >> Hi, >> git send-email has decided that it doesn't want to

Re: [PATCH weston] input: use doubles in the interfaces to notify of input events

2015-10-19 Thread Giulio Camuffo
2015-10-19 4:49 GMT+03:00 Jonas Ådahl : > BTW, are you planning on changing the grab interface vfuncs as well? In > the relative pointer branch I made the motion vfunc take a motion event > struct, should we do this for all types of events or just where it seems > needed? Yes, i'm planning to c