[PATCH libinput] evdev: accept accelerometers if they are tagged as other devices too

2017-08-24 Thread Peter Hutterer
Devices tagged as accelerometers may also be other devices like tablet pads. Only ignore pure accelerometer devices but disable the accelerometer axes for devices that have multiple types. https://bugs.freedesktop.org/show_bug.cgi?id=102100 Signed-off-by: Peter Hutterer --- meson.build

[PATCH] eventloop: clarify post_dispatch_check()

2017-08-24 Thread chris
From: Christopher James Halse Rogers This *technically* changes the semantics of the return value of the source callbacks. Previously you could return a negative number from a source callback and it would prevent *other* source callbacks from triggering a subsequent recheck. Doing that seems l

Re: [PATCH wayland v2] server: document wl_event_loop and wl_event_source

2017-08-24 Thread Christopher James Halse Rogers
On Fri, 2017-08-18 at 16:09 +0300, Pekka Paalanen wrote: > From: Pekka Paalanen > > This documents all the public API related to wl_event_loop and > wl_event_source objects. > > Signed-off-by: Pekka Paalanen > Reviewed-by: Yong Bakos > [Pekka: fixed typos pointed by Yong] > > --- > > v2: Jus

Re: [RFC] compositor-drm: name outputs according to connectors if EDID is unavailable

2017-08-24 Thread Matt Hoosier
On Thu, Aug 24, 2017 at 2:49 AM, Pekka Paalanen wrote: > Hi, > > using connector name to describe the connected monitor doesn't sound > right to me. I didn't really like it either. Thanks for the suggestions below. > > If you actually need the connector name in clients then let's > design an ext

Re: Make DRM plane-assignment algorithm tolerant of more than one fullscreen opaque surface?

2017-08-24 Thread Matt Hoosier
On Tue, Aug 15, 2017 at 9:16 AM, Daniel Stone wrote: > > No, that's all the way broken. I assume the only way this hasn't yet > bitten us is that the background in stock desktop-shell is a SHM-only > client, so won't get promoted to a plane. > > That should be fixed in the atomic branch though, AF

[PATCH] compositor-drm: fix z-order inversion in plane assignment

2017-08-24 Thread Matt Hoosier
As discussed in the following thread: https://lists.freedesktop.org/archives/wayland-devel/2017-August/034755.html the existing plane assignment in the DRM backend is vulnerable to accidental masking of the intended fullscreen surface. This change adds a simple stateful memory to the plane assign

[PATCH weston 8/8] compositor: protocol logger

2017-08-24 Thread Maniraj Devadoss
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-by: Pekka Paalanen pa

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

2017-08-24 Thread Maniraj Devadoss
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 argument to dump_property(

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

2017-08-24 Thread Maniraj Devadoss
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 it be available from s

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

2017-08-24 Thread Maniraj Devadoss
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 Signed-off-by: Maniraj Devadoss --- compositor/main.c | 26 ++ 1 file changed, 26 insertions(+) diff

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

2017-08-24 Thread Maniraj Devadoss
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. Signed-off-by: Pekka P

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

2017-08-24 Thread Maniraj Devadoss
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-off-by: Pekka Paalanen

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

2017-08-24 Thread Maniraj Devadoss
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: Maniraj Devadoss --- Ma

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

2017-08-24 Thread Maniraj Devadoss
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 Devadoss --- compositor/main.c | 6 ++ man/weston.man| 15 +-- 2 files changed, 19 insertions(+), 2 del

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

2017-08-24 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 weston] libweston-desktop/xdg-shell-v6: Ensure configure timer remains

2017-08-24 Thread Daniel Stone
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 new event (either changed, or the client had never received any configure event), followed immediately by

Re: [PATCH] docs: Add documentation for wl_event_source callbacks

2017-08-24 Thread Christopher James Halse Rogers
Hah! Should have read the mailing list as well as checking git. Ignore this; Pekka's patch is much more thorough.___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [RFC] compositor-drm: name outputs according to connectors if EDID is unavailable

2017-08-24 Thread Pekka Paalanen
On Wed, 23 Aug 2017 20:50:02 -0500 Matt Hoosier wrote: > On embedded systems, EDID is typically unavailble for connectors on buses > such as LVDS or DSI. This change enhances the original opportunistic > naming done in 2b2092adb499d8cdc10390cf19876706bcfe69cb to report the > make and model of an

[PATCH] docs: Add documentation for wl_event_source callbacks

2017-08-24 Thread chris
From: Christopher James Halse Rogers Signed-off-by: Christopher James Halse Rogers --- src/wayland-server-core.h | 59 +++ 1 file changed, 59 insertions(+) diff --git a/src/wayland-server-core.h b/src/wayland-server-core.h index 61da8ab..0a2c689 100