Re: [PATCH weston] libweston-desktop/xdg-shell-v6: Ensure first configure is sent

2017-08-30 Thread Daniel Stone
Hi Quentin, On 28 August 2017 at 19:12, Quentin Glidic wrote: > The old code for scheduling configure events on idle looked like: > if (configure_scheduled) { > if (this_event_is_the_same) { > remove_timer(); > return; > } > } > > If we queued one

[PATCH libinput 1/2] util: add a safe_atoi_base() function

2017-08-30 Thread Peter Hutterer
For parsing hex numbers Signed-off-by: Peter Hutterer --- src/libinput-util.h | 12 +++-- test/test-misc.c| 73 + 2 files changed, 83 insertions(+), 2 deletions(-) diff --git a/src/libinput-util.h

Re: [PATCH wayland-protocols] protocol:add compositor-debug.xml

2017-08-30 Thread Pekka Paalanen
On Thu, 24 Aug 2017 16:14:14 +0200 Maniraj Devadoss wrote: > This is a new debugging extension for non-production environments. The > aim is to replace all build-time choosable debug prints in the > compositor with runtime subscribable debug streams. > >

Re: [PATCH weston 1/8] libweston: add weston_debug API and implementation

2017-08-30 Thread Pekka Paalanen
On Thu, 24 Aug 2017 16:16:15 +0200 Maniraj Devadoss wrote: > weston_debug is both a libweston API for relaying debugging messages, > and the compositor-debug wayland protocol implementation for accessing those > debug messages from a Wayland client. > >

Re: [PATCH weston 2/8] compositor: add option to enable weston_debug

2017-08-30 Thread Pekka Paalanen
On Thu, 24 Aug 2017 16:16:16 +0200 Maniraj Devadoss wrote: > Let users enable the compositor debug protocol on the compositor command > line. This allows weston-debug tool to work. > > Signed-off-by: Pekka Paalanen > Signed-off-by: Maniraj

Re: [PATCH weston 7/8] xwm: convert WM_DEBUG into a weston-debug scope

2017-08-30 Thread Pekka Paalanen
On Thu, 24 Aug 2017 16:16:21 +0200 Maniraj Devadoss wrote: > Instead of a compile time choice, offer the XWM debugging messages > through the weston-debug protocol and tool on demand. Users will not > need to recompile weston to get XWM debugging, and it won't

Re: [PATCH weston 3/8] clients: add weston-debug

2017-08-30 Thread Pekka Paalanen
On Thu, 24 Aug 2017 16:16:17 +0200 Maniraj Devadoss wrote: > A tool for accessing the zcompositor_debug_v1 interface features. > > Installed along weston-info, because it should be potentially useful for > people running libweston-based compositors. > >

Re: [PATCH weston 5/8] xwm: dump_property() to use FILE internally

2017-08-30 Thread Pekka Paalanen
On Thu, 24 Aug 2017 16:16:19 +0200 Maniraj Devadoss wrote: > Write the output of dump_property() out in one log call. When multiple > processes (weston and Xwayland) are writing to the same file, this will > keep the property dump uninterrupted by Xwayland

[PATCH wayland 3/4] scanner: use c99 initializers for the interface symbols

2017-08-30 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/scanner.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index b77641f..b38af52 100644 --- a/src/scanner.c +++

[PATCH wayland 1/4] scanner: use c99 initializers for the wl_interface * array

2017-08-30 Thread Emil Velikov
From: Emil Velikov Allows us to remove the explicit NULL init, keeping the list shorter and easier to read. Signed-off-by: Emil Velikov --- src/scanner.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-)

[PATCH wayland 4/4] scanner: initialize .{method, event}_count via ARRAY_SIZE

2017-08-30 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- Since everything is interface->name based, one could even have a macro that results in: DEFINE_INTERFACE(zxdg_surface_v6, 1) --- src/scanner.c | 9 + 1 file changed, 5

[PATCH wayland 2/4] scanner: use c99 initializers for the request/events arrays

2017-08-30 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/scanner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index c93ee60..b77641f 100644 --- a/src/scanner.c +++ b/src/scanner.c