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

Pekka Vuorela pvuorela at iki.fi
Sun Oct 7 14:46:04 PDT 2012


On su, 2012-10-07 at 15:12 -0600, Scott Moreau wrote:
> 
> 
> On Sun, Oct 7, 2012 at 12:21 PM, Pekka Vuorela <pvuorela at iki.fi>
> 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 quite a lousy grab if only events on top of the
>         grabbing
>         window would be delivered?
>         
> 
> Is there another way to determine this information from client side? 
> 
> 
Client knows the width of the menu and can ignore events based on that.

I was actually checking out why menu handling doesn't work properly a
week ago and came across few other issues. First, it's not doing a real
grab even though wl_shell_surface::set_popup defines one. Events only
passed on top of client's surfaces. Second, mouse on top of main window
passes events with coordinates relative to that. Created a bug report
for those https://bugs.freedesktop.org/show_bug.cgi?id=55325




More information about the wayland-devel mailing list