[PATCH weston 1/2 v2] Clip pointer input to menu surface.

2012-10-07 Thread Scott Moreau
Send motion events that are always relative to the menu and not the parent. Before, the events sent were relative to the parent if the pointer was not over the menu. This was also causing a menu item to be selected when clicking outside of the menu. --- v2: * Handle clipping in the client inst

Re: [PATCH weston 1/2] Clip pointer input to menu surface.

2012-10-07 Thread Scott Moreau
On Sun, Oct 7, 2012 at 3:46 PM, Pekka Vuorela wrote: > On su, 2012-10-07 at 15:12 -0600, Scott Moreau wrote: > > > > > > On Sun, Oct 7, 2012 at 12:21 PM, Pekka Vuorela > > wrote: > > On su, 2012-10-07 at 04:28 -0600, Scott Moreau wrote: > > > Don't send motion events to the surfa

Re: [PATCH weston 1/2] Clip pointer input to menu surface.

2012-10-07 Thread Pekka Vuorela
On su, 2012-10-07 at 15:12 -0600, Scott Moreau wrote: > > > On Sun, Oct 7, 2012 at 12:21 PM, Pekka Vuorela > wrote: > On su, 2012-10-07 at 04:28 -0600, Scott Moreau wrote: > > Don't send motion events to the surface when the pointer is > not over the menu. > > Thi

Re: [PATCH weston 1/2] Clip pointer input to menu surface.

2012-10-07 Thread Scott Moreau
On Sun, Oct 7, 2012 at 12:21 PM, Pekka Vuorela wrote: > On su, 2012-10-07 at 04:28 -0600, Scott Moreau wrote: > > Don't send motion events to the surface when the pointer is not over the > menu. > > This was also causing items to be selected when clicking outside of the > menu. > > Wouldn't it be

[PATCH] shell: restore correct layer in shell_unset_fullscreen

2012-10-07 Thread Rafal Mielniczuk
This fixes the bug where surface is above panel_layer just after it is restored from fullscreen mode. How to reproduce: * move surface under panel * set surface fullscreen * restore surface to normal mode --- src/shell.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/shell.c b/src/s

Re: [PATCH weston 1/2] Clip pointer input to menu surface.

2012-10-07 Thread Pekka Vuorela
On su, 2012-10-07 at 04:28 -0600, Scott Moreau wrote: > Don't send motion events to the surface when the pointer is not over the menu. > This was also causing items to be selected when clicking outside of the menu. Wouldn't it be quite a lousy grab if only events on top of the grabbing window woul

[PATCH weston] clients: Set title for all shell surface demos.

2012-10-07 Thread Scott Moreau
--- clients/flower.c | 1 + clients/simple-egl.c | 2 ++ clients/simple-shm.c | 2 ++ clients/simple-touch.c | 1 + 4 files changed, 6 insertions(+) diff --git a/clients/flower.c b/clients/flower.c index a403234..dac52d5 100644 --- a/clients/flower.c +++ b/clients/flower.c @@ -180,6 +18

[PATCH weston] compositor: Don't use surface_list when out of scope.

2012-10-07 Thread Scott Moreau
The surface_list can only be used when called in a path originating from weston_output_repaint(). Additionally, the calls omitted by this patch were redundant since they were called in paths ultimately leading to a repaint call, which calls weston_compositor_repick(), which in turn calls weston_de

[PATCH libxkbcommon v4 2/2] Add xkb_keysym_from_casename() helper for case-insensitive search

2012-10-07 Thread David Herrmann
This adds another helper that allows finding a keysym based on a case-insensitive search. This should really be supported as many keysyms have really weird capitalization-rules. However, as this may produce conflicts, users must be warned to only use this for fallback paths or error-recovery. This

[PATCH libxkbcommon v4 1/2] makekeys: replace helper with python script and binary search

2012-10-07 Thread David Herrmann
From: Ran Benita This removes the complicated and undocumented hash-table creation-helper and replaces it with an autogenerated sorted array. The search uses simple bsearch() now. We also tried using gperf but it turned out to generate way to big hashtables and when reducing the size it isn't re

[PATCH weston 2/2] Fix popup menu button input.

2012-10-07 Thread Scott Moreau
Clicking on a menu item within 500ms of opening it would fail. This fixes that problem as well as right-button-up-to-select. --- clients/window.c | 3 +-- src/shell.c | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/window.c b/clients/window.c index 9a75a46..51a

[PATCH weston 1/2] Clip pointer input to menu surface.

2012-10-07 Thread Scott Moreau
Don't send motion events to the surface when the pointer is not over the menu. This was also causing items to be selected when clicking outside of the menu. --- src/shell.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/shell.c b/src/shell.c index 1c44e39..e6c8ee9 100644 ---