[mutter] wayland/pointer-constraints: Send wl_pointer.frame when locked
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland/pointer-constraints: Send wl_pointer.frame when locked
- Date: Fri, 9 Sep 2016 03:10:23 +0000 (UTC)
commit 0c53677992bede8b785433148bb99ce6031adbad
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Sep 6 12:45:01 2016 +0800
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
src/wayland/meta-wayland-pointer-constraints.c | 1 +
src/wayland/meta-wayland-pointer.c | 2 +-
src/wayland/meta-wayland-pointer.h | 2 ++
3 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-pointer-constraints.c b/src/wayland/meta-wayland-pointer-constraints.c
index 62c2399..c1e82a2 100644
--- a/src/wayland/meta-wayland-pointer-constraints.c
+++ b/src/wayland/meta-wayland-pointer-constraints.c
@@ -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
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index d919330..08f7de9 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -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;
diff --git a/src/wayland/meta-wayland-pointer.h b/src/wayland/meta-wayland-pointer.h
index a7b25ae..f7b76d7 100644
--- a/src/wayland/meta-wayland-pointer.h
+++ b/src/wayland/meta-wayland-pointer.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]