wayland/pointer-constraints: Send wl_pointer.frame when locked

We were not sending wl_pointer.frame after
wp_relative_pointer.relative_motion. Fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=770994
This commit is contained in:
Jonas Ådahl 2016-09-06 12:45:01 +08:00
parent 640178a94f
commit 0c53677992
3 changed files with 4 additions and 1 deletions

View File

@ -815,6 +815,7 @@ locked_pointer_grab_pointer_motion (MetaWaylandPointerGrab *grab,
const ClutterEvent *event)
{
meta_wayland_pointer_send_relative_motion (grab->pointer, event);
meta_wayland_pointer_broadcast_frame (grab->pointer);
}
static void

View File

@ -244,7 +244,7 @@ meta_wayland_pointer_send_frame (MetaWaylandPointer *pointer,
wl_pointer_send_frame (resource);
}
static void
void
meta_wayland_pointer_broadcast_frame (MetaWaylandPointer *pointer)
{
struct wl_resource *resource;

View File

@ -104,6 +104,8 @@ void meta_wayland_pointer_send_relative_motion (MetaWaylandPointer *pointer,
void meta_wayland_pointer_send_button (MetaWaylandPointer *pointer,
const ClutterEvent *event);
void meta_wayland_pointer_broadcast_frame (MetaWaylandPointer *pointer);
void meta_wayland_pointer_set_focus (MetaWaylandPointer *pointer,
MetaWaylandSurface *surface);