Re: [RFC v3 wayland-protocols] inputfd - direct input access protocol

2017-09-11 Thread Peter Hutterer
On Mon, Sep 11, 2017 at 05:04:00PM -0700, Jingkui Wang wrote: > qq inline > > On Tue, Aug 22, 2017 at 3:46 PM, Peter Hutterer > wrote: [...] > > + > > + > > + The wp_inputfd_device_evdev interface represents one device node > > + in the Linux kernel evdev interface. The fd passe

[PATCH weston v2 8/8] compositor: protocol logger

2017-09-11 Thread Maniraj Devadoss
From: Pekka Paalanen This is better than running Weston with WAYLAND_DEBUG=server: - It is enabled on demand, no unnecessary flooding and no need to restart the compositor if debug was enabled. - It prints client pointers so that messages with different clients can be seen apart. Signed-off-

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

2017-09-11 Thread Maniraj Devadoss
From: Pekka Paalanen 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 flood the weston log. The debug scope needs to be initialized in launcher.c for

[PATCH weston v2 6/8] xwm: move FILE to the callers of dump_property()

2017-09-11 Thread Maniraj Devadoss
From: Pekka Paalanen This is preparation for using the weston-debug infrastructure for WM_DEBUG. dump_property() may be called from different debugging contexts and often needs to be prefixed with more information. An alternative to this patch would be to pass in the weston_debug_scope as an arg

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

2017-09-11 Thread Maniraj Devadoss
From: Pekka Paalanen 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. Signed-off-by: Pekka Paalanen Added a man page for weston-debug client Signed-off-by: Ma

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

2017-09-11 Thread Maniraj Devadoss
From: Pekka Paalanen Let users enable the compositor debug protocol on the compositor command line. This allows weston-debug tool to work. Signed-off-by: Pekka Paalanen Renamed the protocol name in weston.man from weston-debug to compositor_debug_v1 Signed-off-by: Maniraj Devadoss --- compo

[PATCH weston v2 4/8] compositor: offer logs via weston-debug

2017-09-11 Thread Maniraj Devadoss
From: Pekka Paalanen This registers a new weston-debug scope "log" through which one can get live log output interspersed with possible other debugging prints. Signed-off-by: Pekka Paalanen pass the log_scope to weston_debug_scope_timestamp API to append the scope name to the timestamp Signed

[PATCH weston v2 0/8] weston-debug API and tool

2017-09-11 Thread Maniraj Devadoss
This series of patches are from weston debug protocol RFC posted by Pekka Paalanen along with the modifications done by me. https://lists.freedesktop.org/archives/wayland-devel/2017-June/034227.html This series depends on the compositor-debug wayland protocol which is not released yet. So a wayl

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

2017-09-11 Thread Maniraj Devadoss
From: Pekka Paalanen 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 debug prints. This is also preparation for more development in the same direction.

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

2017-09-11 Thread Maniraj Devadoss
From: Pekka Paalanen 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. weston_debug_compositor_{create,destroy}() are private API, hence not exported. Signed-of

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

2017-09-11 Thread Maniraj Devadoss
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. Signed-off-by: Pekka Paalanen Signed-off-by: Maniraj Devadoss --- Makefile.am

[PATCH wayland-protocols v2] Introduce compositor-debug protocol

2017-09-11 Thread Maniraj Devadoss
This protocol is a new debugging extension for non-production environments. The aim of this protocol is to replace all the build-time choosable debug prints in the compositor with runtime subscribable debug streams. This protocol is extracted from the weston-debug protocol RFC posted by Pekka Paal

Re: [PATCH weston] clients/nested: fix boolean test

2017-09-11 Thread Eric Engestrom
On Monday, 2017-09-11 16:08:53 +0100, Emil Velikov wrote: > On 11 September 2017 at 15:40, Eric Engestrom > wrote: > > On Monday, 2017-09-11 13:52:28 +0100, Eric Engestrom wrote: > >> weston_check_egl_extension() returns a bool, not a pointer. > >> > Nicely spotted. Fortunately, code produced sho

Re: [PATCH weston] clients/nested: fix boolean test

2017-09-11 Thread Emil Velikov
On 11 September 2017 at 15:40, Eric Engestrom wrote: > On Monday, 2017-09-11 13:52:28 +0100, Eric Engestrom wrote: >> weston_check_egl_extension() returns a bool, not a pointer. >> Nicely spotted. Fortunately, code produced should be identical ;-) >> Signed-off-by: Eric Engestrom > > Fixes: ce5b

Re: [PATCH weston] clients/nested: fix boolean test

2017-09-11 Thread Eric Engestrom
On Monday, 2017-09-11 13:52:28 +0100, Eric Engestrom wrote: > weston_check_egl_extension() returns a bool, not a pointer. > > Signed-off-by: Eric Engestrom Fixes: ce5b614c80b4dfe8e899 "clients/nested: use weston_check_egl_extension over strstr" Cc: Emil Velikov > -

Re: How to support mixed DPI in Xwayland?

2017-09-11 Thread Adam Jackson
On Sun, 2017-09-10 at 22:25 +0200, Joseph Burt wrote: > What about always running the X server at hardware resolution, This isn't a fixed number. Outputs can be hotplugged. - ajax ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https

[PATCH weston] clients/nested: fix boolean test

2017-09-11 Thread Eric Engestrom
weston_check_egl_extension() returns a bool, not a pointer. Signed-off-by: Eric Engestrom --- clients/nested.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/nested.c b/clients/nested.c index 173076a6..e9070e9b 100644 --- a/clients/nested.c +++ b/clients/nested.c @@

Re: Why isn't Xwayland just a Wayland client?

2017-09-11 Thread Pekka Paalanen
On Mon, 11 Sep 2017 10:58:34 +0200 Joseph Burt wrote: > On Fri, Sep 8, 2017 at 11:02 AM, Pekka Paalanen wrote: > > On Thu, 7 Sep 2017 21:18:48 +0200 > > Joseph Burt wrote: > > > >> Hi all, > >> > >> On Wed, Sep 6, 2017 at 1:09 PM, Daniel Stone wrote: > >> > >> > > >> > I really wouldn't r

Re: Why isn't Xwayland just a Wayland client?

2017-09-11 Thread Joseph Burt
On Fri, Sep 8, 2017 at 11:02 AM, Pekka Paalanen wrote: > On Thu, 7 Sep 2017 21:18:48 +0200 > Joseph Burt wrote: > >> Hi all, >> >> On Wed, Sep 6, 2017 at 1:09 PM, Daniel Stone wrote: >> > >> > I really wouldn't recommend doing this. >> >> On Thu, Sep 7, 2017 at 10:05 AM, Pekka Paalanen wrote: >

Re: How to support mixed DPI in Xwayland?

2017-09-11 Thread Joseph Burt
On Mon, Sep 11, 2017 at 9:08 AM, Olivier Fourdan wrote: > Hi > > On 10 September 2017 at 22:25, Joseph Burt wrote: >> >> >> I'm now up to date on the relevant bug reports. Sorry for the spam. >> >> What about always running the X server at hardware resolution, >> limiting the size of lodpi client

Re: How to support mixed DPI in Xwayland?

2017-09-11 Thread Olivier Fourdan
Hi On 10 September 2017 at 22:25, Joseph Burt wrote: > > I'm now up to date on the relevant bug reports. Sorry for the spam. > > What about always running the X server at hardware resolution, > limiting the size of lodpi clients on the XWM side, and letting the > compositor scale them? > That's