[PATCH libinput] touchpad: sync BTN_TOOL_FINGER state on init

2016-12-04 Thread Peter Hutterer
The Elantech touchpad on my Asus Vivobook doesn't release BTN_TOOL_FINGER on up. If the touchpad was used before libinput initializes, the kernel filters the event because its state is already set. We never receive it and keep ignoring all events until the first switch to BTN_TOOL_DOUBLETAP and bac

[PATCH weston 5/6] Display the window menu using the desktop shell

2016-12-04 Thread Dima Ryazanov
The compositor creates a resource that gives the desktop shell limited access to the window that requested a window menu, and sends the desktop shell a "show_window_menu" event. The desktop shell then displays a popup menu using the usual window APIs, and sends back a request with the result (only

[PATCH weston 6/6] window: Start using xdg-shell's show_window_menu API

2016-12-04 Thread Dima Ryazanov
We lose the "Fullscreen" menu item, but oh well. Signed-off-by: Dima Ryazanov --- clients/window.c | 40 +++- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/clients/window.c b/clients/window.c index d4eeca6..4c494b5 100644 --- a/clients/window.

[PATCH weston 3/6] window: Require the serial in window_show_menu

2016-12-04 Thread Dima Ryazanov
The serial that triggered the menu may not always be the latest serial - as will be the case for the desktop-shell. Let's just require clients to pass it explicitly. They already do it when starting a grab, moving a window, etc. Signed-off-by: Dima Ryazanov --- clients/editor.c | 4 +++- clie

[PATCH weston 1/6] libweston: Pass the serial along with the other data in the show_window_menu API

2016-12-04 Thread Dima Ryazanov
We'll need it later to actually display a popup menu. Signed-off-by: Dima Ryazanov --- libweston-desktop/internal.h | 2 +- libweston-desktop/libweston-desktop.c | 4 ++-- libweston-desktop/libweston-desktop.h | 4 ++-- libweston-desktop/xdg-shell-v5.c | 3 ++- libweston-desktop/xd

[PATCH weston 4/6] window: Call the menu callback even if the menu was dismissed

2016-12-04 Thread Dima Ryazanov
Desktop shell will need to know when to clean up menu-related resources. Other clients might find it useful, too. Signed-off-by: Dima Ryazanov --- clients/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/window.c b/clients/window.c index f49ce72..12884f4 100644 --- a/client

[PATCH weston 2/6] libweston: Use the monotonic clock in weston_compositor_get_time

2016-12-04 Thread Dima Ryazanov
(This is kind of a workaround, but perhaps the right thing to do anyways.) The menu implementation in window.c needs to know the time of the event that triggered the menu - however, the xdg-shell's show_window_menu API does not give us that info. There doesn't seem to be an easy way to fake it bec

[PATCH weston 0/6] Implement xdg-shell's show_window_menu API

2016-12-04 Thread Dima Ryazanov
This series implements window menus in Weston - so e.g. right-clicking the title bar of a Gnome app in Weston will actually show a popup menu. The last patch makes Weston clients use the same API, so they'll get a native-looking menu when running in Gnome. Patches 1, 3, and 4 should be pretty unco

Re: [PATCH v3] protocol: Define further the behavior of input on the presence of grabs

2016-12-04 Thread Jonas Ã…dahl
On Wed, Nov 23, 2016 at 06:32:07PM +0100, Carlos Garnacho wrote: > The leave events in the respective device interfaces has been further > documented so those can convey the necessary info when input is being > redirected out of their currently focused surface. > > Only wl_touch is missing somethi

Re: [PATCH v3] protocol: Define further the behavior of input on the presence of grabs

2016-12-04 Thread Yong Bakos
Hi Carlos, > On Nov 23, 2016, at 9:32 AM, Carlos Garnacho wrote: > > The leave events in the respective device interfaces has been further > documented so those can convey the necessary info when input is being > redirected out of their currently focused surface. > > Only wl_touch is missing so

Re: [RFC PATCH 0/8] Meson build system

2016-12-04 Thread Peter Hutterer
On Fri, Dec 02, 2016 at 07:39:02PM +, Emil Velikov wrote: > On 2 December 2016 at 18:28, Daniel Stone wrote: > > Hey, > > > > On 2 December 2016 at 18:25, Emil Velikov wrote: > >> On 1 December 2016 at 15:24, Daniel Stone wrote: > >>> On 1 December 2016 at 14:11, Emil Velikov > >>> wrote:

[PATCH weston] autoconf: Fix AC_MSG_RESULT message when disabling features

2016-12-04 Thread Emmanuel Gil Peyrot
Some variables were previously only set inside conditions, making their output empty. Signed-off-by: Emmanuel Gil Peyrot --- configure.ac | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 1e251bf..8aba62c 100644 --- a/configure.ac +++ b/configure.ac @@ -

[PATCH weston] xwm: Add icon support to the frame

2016-12-04 Thread Emmanuel Gil Peyrot
This fetches the _NET_WM_ICON property of the X11 window, and use the first image found as the frame icon. This has been tested with various X11 programs, and improves usability and user-friendliness a bit. Signed-off-by: Emmanuel Gil Peyrot --- clients/window.c | 4 +-- libwesto

Re: [PATCH weston v2 1/2] launcher: don't try to switch to the current vt

2016-12-04 Thread Giulio Camuffo
2016-11-25 15:10 GMT+01:00 Pekka Paalanen : > On Wed, 29 Jun 2016 11:57:11 +0200 > Giulio Camuffo wrote: > >> Signed-off-by: Giulio Camuffo >> --- >> >> v2: this was split from the following commit >> >> libweston/launcher-direct.c| 12 >> libweston/launcher-impl.h