[mutter/wip/tablet-protocol-v2: 145/149] wayland: Check serial on wp_tablet_pad_ring.set_feedback
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tablet-protocol-v2: 145/149] wayland: Check serial on wp_tablet_pad_ring.set_feedback
- Date: Wed, 20 Jul 2016 17:45:41 +0000 (UTC)
commit ed73efa63fcaf77690b8dc16a6d9a21a915a419f
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jun 29 18:10:18 2016 +0200
wayland: Check serial on wp_tablet_pad_ring.set_feedback
src/wayland/meta-wayland-tablet-pad-ring.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-tablet-pad-ring.c b/src/wayland/meta-wayland-tablet-pad-ring.c
index 9edb382..f73d287 100644
--- a/src/wayland/meta-wayland-tablet-pad-ring.c
+++ b/src/wayland/meta-wayland-tablet-pad-ring.c
@@ -79,7 +79,8 @@ tablet_pad_ring_set_feedback (struct wl_client *client,
{
MetaWaylandTabletPadRing *ring = wl_resource_get_user_data (resource);
- /* FIXME: check serial */
+ if (ring->group->mode_switch_serial != serial)
+ return;
ring->feedback = g_strdup (str);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]