[gtk+/wayland-selections: 4/17] wayland: Update the display serial on touch down/up events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wayland-selections: 4/17] wayland: Update the display serial on touch down/up events
- Date: Fri, 22 Aug 2014 14:13:19 +0000 (UTC)
commit 8cd6893322371ccbe831ead7df053443db198bda
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Aug 20 20:52:39 2014 +0200
wayland: Update the display serial on touch down/up events
gdk/wayland/gdkdevice-wayland.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index cc2be21..002b250 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1384,9 +1384,13 @@ touch_handle_down (void *data,
wl_fixed_t y)
{
GdkWaylandDeviceData *device = data;
+ GdkWaylandDisplay *wayland_display =
+ GDK_WAYLAND_DISPLAY (device->display);
GdkWaylandTouchData *touch;
GdkEvent *event;
+ _gdk_wayland_display_update_serial (wayland_display, serial);
+
touch = gdk_wayland_device_add_touch (device, id, wl_surface);
touch->x = wl_fixed_to_double (x);
touch->y = wl_fixed_to_double (y);
@@ -1408,9 +1412,13 @@ touch_handle_up (void *data,
int32_t id)
{
GdkWaylandDeviceData *device = data;
+ GdkWaylandDisplay *wayland_display =
+ GDK_WAYLAND_DISPLAY (device->display);
GdkWaylandTouchData *touch;
GdkEvent *event;
+ _gdk_wayland_display_update_serial (wayland_display, serial);
+
touch = gdk_wayland_device_get_touch (device, id);
event = _create_touch_event (device, touch, GDK_TOUCH_END, time);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]