wayland: Update the display serial on touch down/up events
https://bugzilla.gnome.org/show_bug.cgi?id=734374
This commit is contained in:
@ -1384,9 +1384,13 @@ touch_handle_down (void *data,
|
|||||||
wl_fixed_t y)
|
wl_fixed_t y)
|
||||||
{
|
{
|
||||||
GdkWaylandDeviceData *device = data;
|
GdkWaylandDeviceData *device = data;
|
||||||
|
GdkWaylandDisplay *wayland_display =
|
||||||
|
GDK_WAYLAND_DISPLAY (device->display);
|
||||||
GdkWaylandTouchData *touch;
|
GdkWaylandTouchData *touch;
|
||||||
GdkEvent *event;
|
GdkEvent *event;
|
||||||
|
|
||||||
|
_gdk_wayland_display_update_serial (wayland_display, serial);
|
||||||
|
|
||||||
touch = gdk_wayland_device_add_touch (device, id, wl_surface);
|
touch = gdk_wayland_device_add_touch (device, id, wl_surface);
|
||||||
touch->x = wl_fixed_to_double (x);
|
touch->x = wl_fixed_to_double (x);
|
||||||
touch->y = wl_fixed_to_double (y);
|
touch->y = wl_fixed_to_double (y);
|
||||||
@ -1408,9 +1412,13 @@ touch_handle_up (void *data,
|
|||||||
int32_t id)
|
int32_t id)
|
||||||
{
|
{
|
||||||
GdkWaylandDeviceData *device = data;
|
GdkWaylandDeviceData *device = data;
|
||||||
|
GdkWaylandDisplay *wayland_display =
|
||||||
|
GDK_WAYLAND_DISPLAY (device->display);
|
||||||
GdkWaylandTouchData *touch;
|
GdkWaylandTouchData *touch;
|
||||||
GdkEvent *event;
|
GdkEvent *event;
|
||||||
|
|
||||||
|
_gdk_wayland_display_update_serial (wayland_display, serial);
|
||||||
|
|
||||||
touch = gdk_wayland_device_get_touch (device, id);
|
touch = gdk_wayland_device_get_touch (device, id);
|
||||||
event = _create_touch_event (device, touch, GDK_TOUCH_END, time);
|
event = _create_touch_event (device, touch, GDK_TOUCH_END, time);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user