[mutter] wayland: set the current serial on touch down/up notifications



commit fbea59b3260c19a869d0d36a270bee9859caf940
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jul 22 01:33:11 2014 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c
index 18fd889..7ddb80e 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,


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