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
This commit is contained in:
Carlos Garnacho 2014-06-19 22:15:32 +02:00
parent 5e395fb676
commit 029d69919b
2 changed files with 5 additions and 4 deletions

View File

@ -444,9 +444,8 @@ touch_info_free (MetaWaylandTouchInfo *touch_info)
g_free (touch_info); g_free (touch_info);
} }
static void void
touch_handle_cancel_event (MetaWaylandTouch *touch, meta_wayland_touch_cancel (MetaWaylandTouch *touch)
struct libinput_event *event)
{ {
GList *surfaces, *s; 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 * which are not so useful when sending a global signal as the protocol
* requires. * requires.
*/ */
touch_handle_cancel_event (touch, event); meta_wayland_touch_cancel (touch);
break; break;
default: default:
break; break;

View File

@ -58,5 +58,7 @@ void meta_wayland_touch_create_new_resource (MetaWaylandTouch *touch,
struct wl_client *client, struct wl_client *client,
struct wl_resource *seat_resource, struct wl_resource *seat_resource,
uint32_t id); uint32_t id);
void meta_wayland_touch_cancel (MetaWaylandTouch *touch);
#endif /* META_WAYLAND_TOUCH_H */ #endif /* META_WAYLAND_TOUCH_H */