[mutter/wip/tablet-protocol-v2: 146/149] wayland: Check serial on wp_tablet_pad_strip.set_feedback



commit 27477cbd30ea665f6ff9fbbb9035122139ae9205
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jun 29 18:10:43 2016 +0200

    wayland: Check serial on wp_tablet_pad_strip.set_feedback

 src/wayland/meta-wayland-tablet-pad-strip.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-tablet-pad-strip.c b/src/wayland/meta-wayland-tablet-pad-strip.c
index 0487b70..7c0ae08 100644
--- a/src/wayland/meta-wayland-tablet-pad-strip.c
+++ b/src/wayland/meta-wayland-tablet-pad-strip.c
@@ -79,7 +79,8 @@ tablet_pad_strip_set_feedback (struct wl_client   *client,
 {
   MetaWaylandTabletPadStrip *strip = wl_resource_get_user_data (resource);
 
-  /* FIXME: check serial */
+  if (strip->group->mode_switch_serial != serial)
+    return;
 
   strip->feedback = g_strdup (str);
 }


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