mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
wayland: Update button state on motion/button events
More specifically, avoid crossing events, since clutter does not set modifier/button state on those. Fixes implicit grabs being broken when the pointer moves past the surface boundaries. https://bugzilla.gnome.org/show_bug.cgi?id=785347
This commit is contained in:
parent
b0c54b6675
commit
5db48faca4
@ -606,8 +606,13 @@ meta_wayland_pointer_update (MetaWaylandPointer *pointer,
|
||||
{
|
||||
repick_for_event (pointer, event);
|
||||
|
||||
if (event->type == CLUTTER_MOTION ||
|
||||
event->type == CLUTTER_BUTTON_PRESS ||
|
||||
event->type == CLUTTER_BUTTON_RELEASE)
|
||||
{
|
||||
pointer->button_count = count_buttons (event);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
notify_motion (MetaWaylandPointer *pointer,
|
||||
|
Loading…
Reference in New Issue
Block a user