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
This commit is contained in:
Carlos Garnacho 2014-07-22 01:33:11 +02:00
parent 38e4906f72
commit fbea59b326

View File

@ -245,7 +245,7 @@ meta_wayland_touch_update (MetaWaylandTouch *touch,
struct wl_client *client = wl_resource_get_client (surface->resource); struct wl_client *client = wl_resource_get_client (surface->resource);
struct wl_display *display = wl_client_get_display (client); 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, touch_get_relative_coordinates (touch, touch_info->touch_surface->surface,