[PATCH wayland-protocols 4/4] xdg-shell: Drop desktop environment specific state allocations

2016-07-28 Thread Jonas Ådahl
Instead of allocating state ranges that desktop environments can use as they want, let them introduce their own protocol and their own enums. If such desktop environment protocols need the configure/ack_configure semantics, they can design their protocols to extend xdg_surface, and make their priv

[PATCH wayland-protocols 3/4 v2] xdg-shell: Add resize_x/y constrain adjustment to positioner

2016-07-28 Thread Jonas Ådahl
In order to get feedback of available space where a client can create its popup, let it create requset that its popup rectangle being resized would it not fit the within the work area. This adds two new constrain adjustment values to the adjustment enum, and dimension parameters to the xdg_popup.co

[PATCH wayland-protocols 1/4 v5] xdg-shell: Introduce xdg_positioner

2016-07-28 Thread Jonas Ådahl
xdg_positioner is a method for declarative positioning of child surfaces (currently only xdg_popup surfaces). A client creates a description of a positioning logic using the xdg_positioner interface. The xdg_positioner object is then used when creating a xdg_popup for describing how the child surfa

[PATCH wayland-protocols 2/4 v2] xdg-shell: Clarify focus semantics for popup grabs

2016-07-28 Thread Jonas Ådahl
Make it clearer what the focus semantics are during a popup grab. In short, when a grabbing popup is mapped, the top most popup will always have keyboard focus, while pointer and touch focus works just as normal except that only surfaces from the grabbing client will receive pointer and touch focus

Re: [PATCH wayland-protocols v4 1/7] xdg-shell: Turn xdg_surface into a generic base interface

2016-07-28 Thread Jonas Ådahl
I just landed 1-6 on the wip/xdg-shell-unstable-v6 branch (which was also force-pushed after rebasing on top of the 1.5 release). I will send a new series including an updated version of patch 7 clarifying some parts that Yong mentioned was unclear. Jonas On Fri, Jun 24, 2016 at 02:47:28PM +080

Re: [PATCH weston v2 3/3] ivi-shell: use zalloc instead of calloc

2016-07-28 Thread Yong Bakos
Hi Emre, > On Jul 28, 2016, at 7:14 AM, Ucan, Emre (ADITG/SW1) > wrote: > > v2 changes: > - use xzalloc > - add an explicit include of xalloc.h in any .c file > that uses xzalloc. > > Signed-off-by: Emre Ucan Is the intent of this patch to cause an exit() when memory allocation fails? See m

[PATCH weston v2 3/3] ivi-shell: use zalloc instead of calloc

2016-07-28 Thread Ucan, Emre (ADITG/SW1)
v2 changes: - use xzalloc - add an explicit include of xalloc.h in any .c file that uses xzalloc. Signed-off-by: Emre Ucan --- ivi-shell/hmi-controller.c| 35 ivi-shell/input-panel-ivi.c |6 ++-- ivi-shell/ivi-layout-transition.c | 62 +++-

RE: [PATCH weston 3/3] ivi-shell: use zalloc instead of calloc

2016-07-28 Thread Ucan, Emre (ADITG/SW1)
Hi Yong, I put these patches in the series, because I implemented them as a fix to Pekka's review findings for this patch series: "[PATCH weston 0/3] Support to display a surface on many layers". I will fix your findings for the third patch with a second version of the patch. Best regards Emr