From fbea59b3260c19a869d0d36a270bee9859caf940 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 22 Jul 2014 01:33:11 +0200 Subject: [PATCH] wayland: set the current serial on touch down/up notifications Do just like pointer button events, and do not bump the serial, so serials match on window drag/move requests triggered from touch events. https://bugzilla.gnome.org/show_bug.cgi?id=733631 --- src/wayland/meta-wayland-touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c index 18fd8891d..7ddb80ee4 100644 --- a/src/wayland/meta-wayland-touch.c +++ b/src/wayland/meta-wayland-touch.c @@ -245,7 +245,7 @@ meta_wayland_touch_update (MetaWaylandTouch *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_next_serial (display); + touch_info->slot_serial = wl_display_get_serial (display); } touch_get_relative_coordinates (touch, touch_info->touch_surface->surface,