[mutter] wayland: use correct enum type for tablet pad
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland: use correct enum type for tablet pad
- Date: Tue, 5 Nov 2019 13:14:28 +0000 (UTC)
commit 95eda361c13991801b5296b8c3de92787de14868
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Thu Oct 17 23:45:30 2019 +0200
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]