[mutter] wayland: Rename touch_handle_cancel_event() to meta_wayland_touch_cancel()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland: Rename touch_handle_cancel_event() to meta_wayland_touch_cancel()
- Date: Wed, 23 Jul 2014 22:18:18 +0000 (UTC)
commit 029d69919b4627e8fb04fc9cae4fc241a29468e8
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 19 22:15:32 2014 +0200
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 012a6a5..18fd889 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 5846955..011e724 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]