[PATCH weston 1/2] config-parser: fix `short_name` type

2017-05-24 Thread Eric Engestrom
This field is populated with chars, compared to chars and printed as a char. It should probably be a char. Signed-off-by: Eric Engestrom --- shared/config-parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/config-parser.h b/shared/config-parser.h index f18d2c0b..

[PATCH weston 2/2] option-parser: replace int/0/1 with bool/false/true

2017-05-24 Thread Eric Engestrom
These are already used as bools by all callers, let's make that official. Signed-off-by: Eric Engestrom --- shared/option-parser.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/shared/option-parser.c b/shared/option-parser.c index e

Re: Return values in Wayland XML specification

2017-05-24 Thread Quentin Glidic
On 5/24/17 8:37 PM, adlo wrote: On 24 May 2017, at 16:43, Quentin Glidic wrote: There is no need, because the compositor is supposed to list only relevant surfaces. What I would like to do is get the desktop window so that I can display a fake live image of the empty desktop as a backgroun

Re: Return values in Wayland XML specification

2017-05-24 Thread adlo
> On 24 May 2017, at 16:43, Quentin Glidic > wrote: > > There is no need, because the compositor is supposed to list only relevant > surfaces. What I would like to do is get the desktop window so that I can display a fake live image of the empty desktop as a background to my full-screen windo

Re: Return values in Wayland XML specification

2017-05-24 Thread Quentin Glidic
On 5/24/17 5:41 PM, adlo wrote: On 15 May 2017, at 10:52, Quentin Glidic wrote: If you are writing/porting a window switcher, please consider using Wayland Wall window-switcher protocol[1]. If you are not, please don’t, as this protocol is very specific to switchers (it has "switch_to" and "

Re: Return values in Wayland XML specification

2017-05-24 Thread adlo
> On 15 May 2017, at 10:52, Quentin Glidic > wrote: > > If you are writing/porting a window switcher, please consider using Wayland > Wall window-switcher protocol[1]. If you are not, please don’t, as this > protocol is very specific to switchers (it has "switch_to" and "close" > requests). >

Re: [PATCH wayland-protocols 00/11] Declaring xdg-shell stable

2017-05-24 Thread Yong Bakos
Hi Jonas, Regarding renaming, > On May 24, 2017, at 2:35 AM, Jonas Ådahl wrote: > > Hi, > > I think it is time to take the next step regarding xdg_shell: declaring it > stable. The current unstable version (xdg_shell unstable v6) has been > implemented in multiple code bases, used by multiple d

Re: [PATCH 1/2 v4] Introduce keyboard grabbing protocol for Xwayland

2017-05-24 Thread Olivier Fourdan
> This patch introduces a new protocol for grabbing the keyboard from > Xwayland. > > This is needed for X11 applications that map an override redirect window > (thus not focused by the window manager) and issue an active grab on the > keyboard to capture all keyboard events. > > Signed-off-by: O

[PATCH wayland-protocols 09/11] xdg-shell/toplevel: Chain multiple parent-child relationships

2017-05-24 Thread Jonas Ådahl
Change the semantics of xdg_toplevel.set_parent to allow chaining multiple parent-child relationships together, while allowing arbitrarily unmapping parents, while keeping what is left over of the chain intact. This makes things easier to manage when parent-child relationships cross client borders

[PATCH wayland-protocols 07/11] xdg-shell/surface: Add note about window position and geometry

2017-05-24 Thread Jonas Ådahl
A client might want to change the window geometry without wanting the window to be moved, for example when changing the width of the border. Point out that the compositor should treat the (x,y) coordinate of the geometry as the top-left corner of the window, and not change the position of the windo

[PATCH wayland-protocols 00/11] Declaring xdg-shell stable

2017-05-24 Thread Jonas Ådahl
Hi, I think it is time to take the next step regarding xdg_shell: declaring it stable. The current unstable version (xdg_shell unstable v6) has been implemented in multiple code bases, used by multiple desktop environments for quite some time, and I think this proves it is time to take the next st

[PATCH wayland-protocols 05/11] xdg-shell/positioner: Allow empty anchor_rect

2017-05-24 Thread Jonas Ådahl
Allow setting an empty anchor rectangle, so that one can map a popup against a coordinate, not a pixel. Signed-off-by: Jonas Ådahl Reviewed-By: Mike Blumenkrantz --- stable/xdg-shell/xdg-shell.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable/xdg-shell/xdg-shell.xml

[PATCH wayland-protocols 04/11] xdg-shell: Reword the xdg_wm_base introduction

2017-05-24 Thread Jonas Ådahl
Don't refer to things as "traditional desktop" as it is not defined nor clear what that refers to; instead reword things in a more non-explicit way. A reason for this is that xdg-shell is not strictly meant only for traditional window stacking based desktop environments, but should be equally suita

[PATCH wayland-protocols 08/11] xdg-shell/toplevel: Clarify xdg_toplevel.set_parent(null)

2017-05-24 Thread Jonas Ådahl
Setting a null-surface as a toplevel parent should unset the parent-child relationship. This was not specified, so lets do that. Signed-off-by: Jonas Ådahl Signed-off-by: Mike Blumenkrantz --- stable/xdg-shell/xdg-shell.xml | 4 1 file changed, 4 insertions(+) diff --git a/stable/xdg-shel

[PATCH wayland-protocols 10/11] xdg-shell/popup: Allow custom parent by passing null as parent

2017-05-24 Thread Jonas Ådahl
Allow using some other protocol (custom, or future xdg_* based) to set up the parent-child relationship of a popup. This allows future protocols to use xdg_popup when mapping popups over surfaces not based on xdg_surface. An example use case for this is the window menu, where a shells UI client ca

[PATCH wayland-protocols 11/11] xdg-shell: clarify map/unmap wording

2017-05-24 Thread Jonas Ådahl
From: Mike Blumenkrantz ensure that this is as precise and explicit as possible for all useful cases and also define previously-unspecified behavior Signed-off-by: Mike Blumenkrantz Reviewed-by: Jonas Ådahl --- stable/xdg-shell/xdg-shell.xml | 32 1 file chang

[PATCH wayland-protocols 02/11] xdg-shell: Rename interfaces

2017-05-24 Thread Jonas Ådahl
Rename the interfaces according to the wayland-protocols policy. Since the name 'xdg_shell' as an interface was already taken (by xdg-shell-unstable-v5) zxdg_shell_v6 was renamed xdg_wm_base. The surface role related interfaces were not renamed, as naming collision is only unmanagable when exposed

[PATCH wayland-protocols 03/11] xdg-shell: Update copyright notices

2017-05-24 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl Acked-by: Mike Blumenkrantz --- stable/xdg-shell/xdg-shell.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml index da8d6d4..ec70073 100644 --- a/stable/xdg-shell/xdg-shell.xml +++ b/stable/xdg-shel

[PATCH wayland-protocols 01/11] Add xdg-shell to stable/

2017-05-24 Thread Jonas Ådahl
Add a copy of xdg-shell unstable v6 to stable/xdg-shell/xdg-shell.xml. Folliwing this commit, it will go through a set of changes, before being declared stable. Signed-off-by: Jonas Ådahl --- stable/xdg-shell/README|5 + stable/xdg-shell/xdg-shell.xml | 1044 +

[PATCH wayland-protocols 06/11] xdg-shell: Replace 'monitor' with 'output'

2017-05-24 Thread Jonas Ådahl
There is no such thing as 'monitor' in Wayland, only outputs. Signed-off-by: Jonas Ådahl Reviewed-By: Mike Blumenkrantz --- stable/xdg-shell/xdg-shell.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml inde

Re: [PATCH][weston] configure.ac: Add --with-wayland-scanner-path

2017-05-24 Thread Jussi Kukkonen
On 23 May 2017 at 14:51, Quentin Glidic wrote: >> >> >> Also add a AC_SUBST-call (it seems previously the pkg-config value was >> >> never substituted into Makefiles). >> > >> > It was, AC_PATH_PROG() does call AC_SUBST(). >> >> Sure, AC_PATH_PROG() works. As I said, it's the value _from pkg-c