Re: [PATCH weston] sdk: make C++11 plugins build again

2013-12-09 Thread Thiago Macieira
On segunda-feira, 9 de dezembro de 2013 15:57:16, Kristian Høgsberg wrote: > Ugh, ok, sorry. Maybe we need a private header file where we can hide > all our C macros - ARRAY_LENGTH, static_assert, container_of etc. This "poor man's static_assert" should work in C99 mode too: #include #if !defin

Re: [PATCH weston] sdk: make C++11 plugins build again

2013-12-09 Thread Kristian Høgsberg
On Mon, Dec 09, 2013 at 10:47:58PM +0100, Giulio Camuffo wrote: > compositor.h must not define a 'static_assert' macro, since that > conflicts with the new 'static_assert' in the standard and breaks > the build. Ugh, ok, sorry. Maybe we need a private header file where we can hide all our C macro

Re: [PATCH] Fix compilation with FreeRdp 1.1 and master

2013-12-09 Thread Kristian Høgsberg
On Mon, Dec 09, 2013 at 10:16:39PM +0100, Hardening wrote: > The API to use remoteFx encoding has changed between master and stable 1.1 > branch. This patch fixes compilation for both. > Please note that the freerdp/version.h file is generated in the very last > versions > of FreeRdp so be sure to

Re: [PATCH weston] compositor: add a masking mechanism to weston_layer

2013-12-09 Thread Jason Ekstrand
Giulio, Couple thoughts. First, you don't provide an implementation of the clipping in any of the renderers. Probably have to wait on the Collabora people for the RPi renderer, but we should have pixman and gl implementations of this. Second, is there any particular reason why you're using pixm

Re: [PATCH] Add a weston_surface_set_size function

2013-12-09 Thread Bryce W. Harrington
On Mon, Dec 09, 2013 at 09:16:07PM +0100, Giulio Camuffo wrote: > 2013/12/9 Bryce W. Harrington : > > On Wed, Dec 04, 2013 at 08:32:03PM -0600, Jason Ekstrand wrote: > >> Surfaces that are created by clients get their size automatically updated > >> by the attach/commit. Surfaces created directly

Re: [PATCH] Add a weston_surface_set_size function

2013-12-09 Thread Jason Ekstrand
As Guilio said, we don't want shells to be randomly resizing surfaces that come from clients. If it comes from a client, then the surface size comes from the buffer size. If it comes from a shell, then it is free to resize as it sees fit. I the reason for two functions is precicely that weston_s

Re: [PATCH weston] introduces a setting to give permission to any client to do screenshots

2013-12-09 Thread Bryce W. Harrington
On Wed, Dec 04, 2013 at 05:38:23PM +0100, Sebastian Wick wrote: > This patch adds a screenshooter section with the "restrict-access" > setting which is on by default and is the current behavior of weston. > When turning it off, all clients can use the screenshooter protocol. > This makes screen cap

Re: [PATCH wayland 2/2] doc: Fix spelling of parameters

2013-12-09 Thread Bryce W. Harrington
On Mon, Dec 09, 2013 at 10:35:22PM +0100, Jonas Ådahl wrote: > Signed-off-by: Jonas Ådahl Reviewed-by: Bryce Harrington > --- > src/wayland-client.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/wayland-client.c b/src/wayland-client.c > index ab79b7b..7503ca

[PATCH weston] sdk: make C++11 plugins build again

2013-12-09 Thread Giulio Camuffo
compositor.h must not define a 'static_assert' macro, since that conflicts with the new 'static_assert' in the standard and breaks the build. --- desktop-shell/shell.c | 4 src/compositor.h | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop-shell/shell.c b/d

[PATCH wayland 2/2] doc: Fix spelling of parameters

2013-12-09 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl --- src/wayland-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland-client.c b/src/wayland-client.c index ab79b7b..7503ca0 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -427,7 +427,7 @@ create_outgoing_proxy(str

[PATCH weston] compositor: add a masking mechanism to weston_layer

2013-12-09 Thread Giulio Camuffo
this adds a mechanism to mask the views belonging to a layer to an arbitrary rect, in the global space. The parts that don't fit in that rect will be clipped away. --- As per the discussion on IRC, masking layers is preferred to masking views, so this replaces http://lists.freedesktop.org/archives

[PATCH wayland 1/2] doc: Remove incorrect docmentation

2013-12-09 Thread Jonas Ådahl
The documentation was about wl_client_get_object(), not about wl_resource_get_client(). Signed-off-by: Jonas Ådahl --- src/wayland-server.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index 80e76e1..1459e09 100644 --- a/src/wayland-

[PATCH] Fix compilation with FreeRdp 1.1 and master

2013-12-09 Thread Hardening
The API to use remoteFx encoding has changed between master and stable 1.1 branch. This patch fixes compilation for both. Please note that the freerdp/version.h file is generated in the very last versions of FreeRdp so be sure to update/install the last versions. --- src/compositor-rdp.c | 5

Re: [PATCH] Add a weston_surface_set_size function

2013-12-09 Thread Giulio Camuffo
2013/12/9 Bryce W. Harrington : > On Wed, Dec 04, 2013 at 08:32:03PM -0600, Jason Ekstrand wrote: >> Surfaces that are created by clients get their size automatically updated >> by the attach/commit. Surfaces created directly by shells (such as black >> surfaces) sometimes need to be manually resi

Re: [PATCH 0/3] Test static functions

2013-12-09 Thread Bryce W. Harrington
On Thu, Dec 05, 2013 at 04:38:19PM +0100, Marek Ch wrote: > Hi, > > I did similar thing like is in Weston for testing static functions. Also, I > wrote > few wl_buffer unit tests. > I appreaciate any comments :) > > P. S.: based on mailing here: > http://lists.freedesktop.org/archives/wayland-de

Re: [PATCH] Add a weston_surface_set_size function

2013-12-09 Thread Bryce W. Harrington
On Wed, Dec 04, 2013 at 08:32:03PM -0600, Jason Ekstrand wrote: > Surfaces that are created by clients get their size automatically updated > by the attach/commit. Surfaces created directly by shells (such as black > surfaces) sometimes need to be manually resized. This function allows you > to d

wl_display_connect() falling back to wayland-0

2013-12-09 Thread Emilio Pozuelo Monfort
Hi, I was looking at making gtk+ try the wayland backend before the x11 one [1]. This would solve the problem where every gtk+ app uses the x11 backend through XWayland when the latter is available. As you can read on comment #3 and in the patch from comment #1, wl_display_connect() currently fal

Re: The least I need to draw with OpenGL.

2013-12-09 Thread Pekka Paalanen
On Mon, 9 Dec 2013 14:15:16 +0300 Artsiom Anikeyenka wrote: > Hi, guys, > > My ultimate idea here to run a command from my terminal which will > repaint the screen and draws the cube there. I then press Ctrl+C and > get back to my terminal. So basically what I need is to create an > OpenGL conte

The least I need to draw with OpenGL.

2013-12-09 Thread Artsiom Anikeyenka
Hi, guys, My ultimate idea here to run a command from my terminal which will repaint the screen and draws the cube there. I then press Ctrl+C and get back to my terminal. So basically what I need is to create an OpenGL context and draw to it. I want to make it the shortest way. The less components

Re: [PATCH weston 03/11] configure.ac: Correctly check for functions and libraries

2013-12-09 Thread Quentin Glidic
On 09/12/2013 11:28, Ander Conselvan de Oliveira wrote: On 12/08/2013 08:45 PM, Quentin Glidic wrote: From: Quentin Glidic AC_SEARCH_LIBS is preferred over AC_CHECK_FUNC and AC_CHECK_LIB Why is it preferred? I am trusting the Autoconf manual[1] on this one. Basically, the double-check we

Re: [PATCH weston 03/11] configure.ac: Correctly check for functions and libraries

2013-12-09 Thread Ander Conselvan de Oliveira
On 12/08/2013 08:45 PM, Quentin Glidic wrote: From: Quentin Glidic AC_SEARCH_LIBS is preferred over AC_CHECK_FUNC and AC_CHECK_LIB Why is it preferred? Signed-off-by: Quentin Glidic --- configure.ac | 37 + 1 file changed, 21 insertions(+), 16 delet

Re: [PATCH] Add wl_dmabuf protocol

2013-12-09 Thread Pekka Paalanen
On Thu, 5 Dec 2013 18:36:38 +0100 benjamin.gaign...@linaro.org wrote: > From: Benjamin Gaignard > > It allow to use a dmabuf file descriptor in a wayland protocol. > To make as generic as possible it is up to the server to call > wl_dmabuf_send_format() and/or wl_dmabuf_send_capabilities() to s