[gtk+/wayland-selections: 2/17] wayland: Store per-touch touch_down serial



commit fceb3e3682bdc0a6382dcb90fbc390bc87c19cf5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Aug 13 21:05:12 2014 +0200

    wayland: Store per-touch touch_down serial

 gdk/wayland/gdkdevice-wayland.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 3780396..9dda3d7 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -47,6 +47,7 @@ struct _GdkWaylandTouchData
   gdouble x;
   gdouble y;
   GdkWindow *window;
+  uint32_t touch_down_serial;
   guint initial_touch : 1;
 };
 
@@ -1389,6 +1390,7 @@ touch_handle_down (void              *data,
   touch = gdk_wayland_device_add_touch (device, id, wl_surface);
   touch->x = wl_fixed_to_double (x);
   touch->y = wl_fixed_to_double (y);
+  touch->touch_down_serial = serial;
 
   event = _create_touch_event (device, touch, GDK_TOUCH_BEGIN, time);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]