From 95eda361c13991801b5296b8c3de92787de14868 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Thu, 17 Oct 2019 23:45:30 +0200 Subject: [PATCH] wayland: use correct enum type for tablet pad Fixes a compile warning. The two enums are identical, so no functional change intended. https://gitlab.gnome.org/GNOME/mutter/merge_requests/863 --- src/wayland/meta-wayland-tablet-pad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-tablet-pad.c b/src/wayland/meta-wayland-tablet-pad.c index 335d3d030..167d45948 100644 --- a/src/wayland/meta-wayland-tablet-pad.c +++ b/src/wayland/meta-wayland-tablet-pad.c @@ -347,9 +347,9 @@ handle_pad_button_event (MetaWaylandTabletPad *pad, return FALSE; if (event->type == CLUTTER_PAD_BUTTON_PRESS) - button_state = ZWP_TABLET_TOOL_V2_BUTTON_STATE_PRESSED; + button_state = ZWP_TABLET_PAD_V2_BUTTON_STATE_PRESSED; else if (event->type == CLUTTER_PAD_BUTTON_RELEASE) - button_state = ZWP_TABLET_TOOL_V2_BUTTON_STATE_RELEASED; + button_state = ZWP_TABLET_PAD_V2_BUTTON_STATE_RELEASED; else return FALSE;