mirror of
https://github.com/brl/mutter.git
synced 2025-02-08 17:44:09 +00:00
wayland/touch: Use helper for getting the next event serial
https://bugzilla.gnome.org/show_bug.cgi?id=771646
This commit is contained in:
parent
9f071fdc87
commit
006c83f99d
@ -249,11 +249,10 @@ meta_wayland_touch_update (MetaWaylandTouch *touch,
|
|||||||
if (event->type == CLUTTER_TOUCH_BEGIN ||
|
if (event->type == CLUTTER_TOUCH_BEGIN ||
|
||||||
event->type == CLUTTER_TOUCH_END)
|
event->type == CLUTTER_TOUCH_END)
|
||||||
{
|
{
|
||||||
MetaWaylandSurface *surface = touch_info->touch_surface->surface;
|
MetaWaylandInputDevice *input_device = META_WAYLAND_INPUT_DEVICE (touch);
|
||||||
struct wl_client *client = wl_resource_get_client (surface->resource);
|
|
||||||
struct wl_display *display = wl_client_get_display (client);
|
|
||||||
|
|
||||||
touch_info->slot_serial = wl_display_get_serial (display);
|
touch_info->slot_serial =
|
||||||
|
meta_wayland_input_device_next_serial (input_device);
|
||||||
}
|
}
|
||||||
|
|
||||||
touch_get_relative_coordinates (touch, touch_info->touch_surface->surface,
|
touch_get_relative_coordinates (touch, touch_info->touch_surface->surface,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user