From 029d69919b4627e8fb04fc9cae4fc241a29468e8 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 19 Jun 2014 22:15:32 +0200 Subject: [PATCH] wayland: Rename touch_handle_cancel_event() to meta_wayland_touch_cancel() This will serve as a generic call to issue touch cancellation on clients, useful for the gesture tracker support. https://bugzilla.gnome.org/show_bug.cgi?id=733631 --- src/wayland/meta-wayland-touch.c | 7 +++---- src/wayland/meta-wayland-touch.h | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c index 012a6a5b3..18fd8891d 100644 --- a/src/wayland/meta-wayland-touch.c +++ b/src/wayland/meta-wayland-touch.c @@ -444,9 +444,8 @@ touch_info_free (MetaWaylandTouchInfo *touch_info) g_free (touch_info); } -static void -touch_handle_cancel_event (MetaWaylandTouch *touch, - struct libinput_event *event) +void +meta_wayland_touch_cancel (MetaWaylandTouch *touch) { GList *surfaces, *s; @@ -495,7 +494,7 @@ evdev_filter_func (struct libinput_event *event, * which are not so useful when sending a global signal as the protocol * requires. */ - touch_handle_cancel_event (touch, event); + meta_wayland_touch_cancel (touch); break; default: break; diff --git a/src/wayland/meta-wayland-touch.h b/src/wayland/meta-wayland-touch.h index 584695588..011e724be 100644 --- a/src/wayland/meta-wayland-touch.h +++ b/src/wayland/meta-wayland-touch.h @@ -58,5 +58,7 @@ void meta_wayland_touch_create_new_resource (MetaWaylandTouch *touch, struct wl_client *client, struct wl_resource *seat_resource, uint32_t id); +void meta_wayland_touch_cancel (MetaWaylandTouch *touch); + #endif /* META_WAYLAND_TOUCH_H */