[PATCH weston 1/2] window: Only set menu element when menu widget is focused

Pekka Vuorela pvuorela at iki.fi
Fri Oct 19 04:10:44 PDT 2012


2012/10/19 Jonas Ådahl <jadahl at gmail.com>:
> Motion handlers are called for either grabbed or focused widgets. If a
> menu is displayed, thus grabbed, motion events relative to the parent
> surface are delivered to the menu widget motion handler even though it
> is not in focus. By checking that the menu widget is the focused one we
> can avoid setting incorrect menu elements.
>
> This fixes the issue when an unexpected menu item gets selected when the
> pointer is just outside the menu area.

Was discussed earlier this month and the understanding was that on
grab events should be always relative to menu surface. This patch
would paper over the wrong behavior.


More information about the wayland-devel mailing list