[PATCH weston] Remove cairo-gles2 support from toytoolkit

2016-03-15 Thread Bryce Harrington
This is a first step towards stopping use of cairo-egl in demo apps. See: https://bugs.freedesktop.org/show_bug.cgi?id=83878 The nested client had required cairo-gles2 but looks like it ought to work with plain cairo-gl (at least, it compiles fine). Signed-off-by: Bryce Harrington

Re: [PATCH weston 1/5] ivi-shell: include config.h in ivi-layout-transition.c

2016-03-15 Thread Bryce Harrington
On Tue, Mar 15, 2016 at 05:39:21PM +0200, Pekka Paalanen wrote: > From: Pekka Paalanen > > Every .c file must include config.h as the first thing. > > Signed-off-by: Pekka Paalanen > --- > ivi-shell/ivi-layout-transition.c | 2 ++

[PATCH 3/3] ivi: Switch from MEM_ALLOC to the now equivalent xzalloc

2016-03-15 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- clients/ivi-shell-user-interface.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/clients/ivi-shell-user-interface.c b/clients/ivi-shell-user-interface.c index db64f19..0a24ed6 100644 ---

[PATCH 2/2] shared: Print .c file/line number in x* routines

2016-03-15 Thread Bryce Harrington
Switches from inline to pre-processor definitions in order to utilize __FILE__ and __LINE__ from the .c file in order to display the location of memory allocation failures when failing. Now xmalloc, et al calls will produce: [weston-info] clients/weston-info.c:714: out of memory (1024)

[PATCH 1/2] clients & tests: Unify multiple definitions of x*alloc and related functions

2016-03-15 Thread Bryce Harrington
Direct fail_on_null calls now produce output like: [weston-info] clients/weston-info.c:714: out of memory xmalloc, et al produce output on failure like: [weston-info] out of memory (-1) Signed-off-by: Bryce Harrington --- Makefile.am| 6

[PATCH weston] clients: fix incorrect format handling in simple-shm

2016-03-15 Thread Murray Calavera
the `shm_format` function seems to assume the `wl_shm_format` enum has bit-exclusive enumerations which is not true. Signed-off-by: Murray Calavera --- clients/simple-shm.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

Re: Accessibility considerations

2016-03-15 Thread Daniel Stone
Hi, On 11 March 2016 at 09:31, Pekka Paalanen wrote: > On Fri, 11 Mar 2016 15:46:21 +1000 > Peter Hutterer wrote: >> On Thu, Mar 10, 2016 at 01:43:13PM -0500, Matthias Clasen wrote: >> > I would like to discuss strategies for implementing

Re: [PATCH weston 3/5] ivi-shell: call send_surface_send_configure() directly

2016-03-15 Thread Pekka Paalanen
On Tue, 15 Mar 2016 17:39:23 +0200 Pekka Paalanen wrote: > From: Pekka Paalanen > > For some reason, it seems that ivi-layout.c has tried hard to avoid > calling directly into ivi-shell.c. This means there is a jump through > hoops just to

[PATCH weston 3/5] ivi-shell: call send_surface_send_configure() directly

2016-03-15 Thread Pekka Paalanen
From: Pekka Paalanen For some reason, it seems that ivi-layout.c has tried hard to avoid calling directly into ivi-shell.c. This means there is a jump through hoops just to get the configure event sent to the clients. Ivi-shell registers a listener for a

[PATCH weston 4/5] ivi-shell: remove configured signal from ivi-layout

2016-03-15 Thread Pekka Paalanen
From: Pekka Paalanen Now that ivi-layout calls directly into ivi-shell.c, this signal is no longer used. Remove it. Signed-off-by: Pekka Paalanen --- ivi-shell/ivi-layout-private.h| 6 +-

[PATCH weston 2/5] ivi-shell: add include guards on ivi-shell.h

2016-03-15 Thread Pekka Paalanen
From: Pekka Paalanen It's our standard practice. This file will get used a bit more in the future. Signed-off-by: Pekka Paalanen --- ivi-shell/ivi-shell.h | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH weston 1/5] ivi-shell: include config.h in ivi-layout-transition.c

2016-03-15 Thread Pekka Paalanen
From: Pekka Paalanen Every .c file must include config.h as the first thing. Signed-off-by: Pekka Paalanen --- ivi-shell/ivi-layout-transition.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH weston 5/5] ivi-shell: introduce ivi-layout-shell.h

2016-03-15 Thread Pekka Paalanen
From: Pekka Paalanen This new header encapsulates the API that ivi-layout offers to ivi-shell.c to call. ivi-shell.c no longer uses ivi-layout-private.h. This limits the ivi-layout internal structures to just ivi-layout code. Signed-off-by: Pekka Paalanen

[PATCH weston 0/5] ivi-shell untangling

2016-03-15 Thread Pekka Paalanen
From: Pekka Paalanen Hi, here are few clean-ups for ivi-shell, and removal of a signal in favour of a direct unconditional call. I'm also extracting the ivi-shell facing API part out of ivi-layout-private.h to make it a little more readable. Thanks, pq Pekka

Weston, frame callback, and clock

2016-03-15 Thread Pekka Paalanen
Hi Christian On Mon, 14 Mar 2016 16:43:05 -0700 Christian Hergert wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 03/14/2016 06:30 AM, Pekka Paalanen wrote: > > Hi, > > > > I saw your comments on > > https://bugzilla.gnome.org/show_bug.cgi?id=763350 . >

[PATCH weston 3/3] clients: Fork clickdot as confine

2016-03-15 Thread Jonas Ådahl
The new confine client will be used to demonstrate pointer confinement. It is so far identical to clickdot except that it doesn't respond to clicks. Signed-off-by: Jonas Ådahl --- This patch does what Peter suggested, i.e. fork clickdot into a separate client that demonstrates

[PATCH weston 2/3] Implement pointer locking and confinement

2016-03-15 Thread Jonas Ådahl
This patch implements the wp_pointer_constraints protocol used for locking or confining a pointer. It consists of a new global object with two requests; one for locking the surface to a position, one for confining the pointer to a given region. In this patch, only the locking part is fully

[PATCH weston 1/3] input: Activate view no matter the keyboard focus

2016-03-15 Thread Jonas Ådahl
Activate a view even though it effectively may already be active. Without this, in later patches, it won't be possibe to track what view was activated by clicking last, as a view which surface already had keyboard focus, won't be activated. To keep avoiding sending xdg_surface.configure events,

[PATCH weston 0/3] Pointer constraints follow up

2016-03-15 Thread Jonas Ådahl
Hi, I have just updated the relative pointer and pointer constraints implementation for weston to be compatible with the protocol published via wayland-protocols. Up to date patches can be found here: https://github.com/jadahl/weston/commits/wip/pointer-constraints The patches in this series

Re: [PATCH weston] simple-egl: use roundtrip after get_registry request

2016-03-15 Thread Pekka Paalanen
On Mon, 14 Mar 2016 11:40:38 +0100 Marek Chalupa wrote: > Sometimes weston-simple-egl aborts in create_surface > under some conditions. It is because wl_display_dispatch() > may not be enough to make sure we have all requried objects. > Can be modeled by wldbg: > > $

Re: [PATCH weston] ivi-shell: remove content_observer notification

2016-03-15 Thread Pekka Paalanen
On Mon, 14 Mar 2016 15:42:29 + "Ucan, Emre (ADITG/SW1)" wrote: > The content observer notification struct and its > set API (ivi_layout_surface_set_content_observer) > are removed. Because they are unused. > > Signed-off-by: Emre Ucan Hi Emre,

Re: [PATCH] ivi-shell: Remove all surface transitions when it is being removed.

2016-03-15 Thread Pekka Paalanen
On Wed, 9 Mar 2016 11:10:51 -0800 Bryce Harrington wrote: > On Wed, Mar 09, 2016 at 10:35:53AM +, Ucan, Emre (ADITG/SW1) wrote: > > Hi, > > > > My apologies. I wrote it wrong. The API is in ivi-layout-private.h. > > > > Then, it is good: > > > > Reviewed-by: Emre

Re: desktop-shell: How to enable really alpha blending of weston background?

2016-03-15 Thread Pekka Paalanen
On Mon, 14 Mar 2016 14:44:34 +0200 Pekka Paalanen wrote: > On Sat, 12 Mar 2016 11:33:40 -0800 > "Jasper St. Pierre" wrote: > > > I have to bring this up, because it's not necessarily true. There's > > something you're missing. After working on