[PATCH libinput 2/3] Replace calloc calls with zalloc

2017-07-06 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 4 +--- src/evdev.c | 4 +--- src/filter.c| 4 ++-- test/litest.c | 4 ++-- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/evdev-mt-touchpad.c

[PATCH libinput 3/3] Add safe_strdup()

2017-07-06 Thread Peter Hutterer
Return value is either NULL or a strdup'd string, depending on the input value. Signed-off-by: Peter Hutterer --- meson.build | 2 ++ src/libinput-util.h | 19 +++ src/libinput.c | 12 +++- src/path-seat.c | 7 +++

[PATCH libinput 2/2] Add support for CircleCI

2017-07-06 Thread Peter Hutterer
This isn't currently hooked up to the fdo repo but it's hooked up to my github mirror. I had SemaphoreCI hooked up to that before but it only supports ubuntu 14.04 and the recent meson switch made it a bit hard to setup. CircleCI supports running docker containers, so let's do that and run

[PATCH libinput 1/2] Fix a few things scan-build complains about

2017-07-06 Thread Peter Hutterer
Uninitialized variables, potential NULL dereferences, dead assignments and an unused return value. Signed-off-by: Peter Hutterer --- test/test-keyboard.c | 6 +++--- test/test-log.c | 6 +- test/test-path.c | 3 +-- test/test-tablet.c | 12

Re: [RFC PATCH v2] Add xdg-output protocol

2017-07-06 Thread Pekka Paalanen
Hi Olivier, it's very hard for me to wrap my head around this, so the below may sound a bit harsh, sorry. I don't mean to rant, but I feel there is something fundamental amiss. I am diving back into the high-level design which is fairly separated from the xdg_output interface. On Thu, 6 Jul 2017

Re: [RFC PATCH] Add xdg-output protocol

2017-07-06 Thread Olivier Fourdan
Hi, > I don't understand what we gain by sending the position again in global > compositor space, it will always match the position of the wl_output. That's right, but the position in wl_output has limited sense for some applications (basically, an x/y position makes sense only in a 2D

Re: [PATCH weston] configure.ac: use PKG_CHECK_VAR for wayland-protocols

2017-07-06 Thread Olivier Blin
Le 06/07/2017 à 14:46, Daniel Stone a écrit : Hi Olivier, On 6 July 2017 at 13:28, Olivier Blin wrote: > @@ -208,9 +208,7 @@ fi > PKG_CHECK_MODULES(LIBINPUT_BACKEND, [libinput >= 0.8.0]) > PKG_CHECK_MODULES(COMPOSITOR, [$COMPOSITOR_MODULES]) > >

[PATCH weston v2] configure.ac: use PKG_CHECK_VAR for wayland-protocols

2017-07-06 Thread Olivier Blin
This allows to override the wayland-protocols pkgdatadir with the WAYLAND_PROTOCOLS_DATADIR environment variable. pkgconfig would return an absolute path in /usr/share/wayland-protocols for the pkgdatadir value, which is not suitable for cross-compiling. The pkgdatadir is not affected by the

Re: [PATCH weston] configure.ac: use PKG_CHECK_VAR for wayland-protocols

2017-07-06 Thread Daniel Stone
Hi Olivier, On 6 July 2017 at 13:28, Olivier Blin wrote: > @@ -208,9 +208,7 @@ fi > PKG_CHECK_MODULES(LIBINPUT_BACKEND, [libinput >= 0.8.0]) > PKG_CHECK_MODULES(COMPOSITOR, [$COMPOSITOR_MODULES]) > > -PKG_CHECK_MODULES(WAYLAND_PROTOCOLS, [wayland-protocols >= 1.8],

[PATCH weston] configure.ac: use PKG_CHECK_VAR for wayland-protocols

2017-07-06 Thread Olivier Blin
This allows to override the wayland-protocols pkgdatadir with the WAYLAND_PROTOCOLS_DATADIR environment variable. pkgconfig would return an absolute path in /usr/share/wayland-protocols for the pkgdatadir value, which is not suitable for cross-compiling. The pkgdatadir is not affected by the

Re: [RFC PATCH v2] Add xdg-output protocol

2017-07-06 Thread Olivier Fourdan
Hi Pekka, > I think I can offer only mostly mechanical comments, as I am still > quite confused about how this will actually be used. Well, for now, it will be used by Xwayland, might be of some interest for other clients who might need to know about the output "logical" size (e.g. screencast

[PATCH 0/3] RDP: OpenGL hardware acceleration

2017-07-06 Thread Olivier Blin
Hello, Please find below a patchset to provide OpenGL hardware acceleration in the RDP backend, for review and discussion. This reuses the patch sent by DRC, with a small fix in gl-renderer to support PIXMAN_x8r8g8b8. It fixes the black display that was experienced with the RPD/GL patch. Using

[PATCH 1/3] compositor-rdp: fix leak of frame bitmap in raw mode

2017-07-06 Thread Olivier Blin
In rdp_peer_refresh_raw(), cmd->bitmapData was reallocated, but never freed. The cmd content (actually peer->update->surface_bits_command) was re-initialized to zero at the beginning of the function, losing the pointer to the previously allocated bitmap data. Move the bitmap data in the

[PATCH 3/3] rdp-backend.so: OpenGL hardware acceleration

2017-07-06 Thread Olivier Blin
From: DRC --- compositor/main.c | 23 +++- configure.ac | 4 +- libweston/compositor-rdp.c | 314 +++-- libweston/compositor-rdp.h | 24 4 files changed, 352 insertions(+), 13 deletions(-) diff

[PATCH 2/3] gl-renderer: read PIXMAN_x8r8g8b8 as GL_BGRA_EXT

2017-07-06 Thread Olivier Blin
This is needed by the RDP backend, which uses PIXMAN_x8r8g8b8 for its shadow buffers. --- libweston/gl-renderer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c index da29b072..b8b120a1 100644 --- a/libweston/gl-renderer.c +++

[PATCH wayland-protocols] sysroot prefix

2017-07-06 Thread Tomek Bury
Hi, I've attached a trivial patch we discussed yesterday on #wayland channel. The patch adds a sysroot prefix to the "pkgdatadir" variable. The pkg-config automatically adds sysroot to paths returned by --cflags and --libs but *NOT* to --variable. The "pkgdatadir" in wayland-protocols.pc is

Re: [RFC PATCH v2] Add xdg-output protocol

2017-07-06 Thread Pekka Paalanen
On Tue, 4 Jul 2017 14:13:43 +0200 Olivier Fourdan wrote: > This protocol aims at describing outputs in way which is more in line > with the concept of an output on desktop oriented systems. > > Some information are more specific to the concept of an output for a > desktop