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
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2019-10-17 23:45:30 +02:00 committed by Georges Basile Stavracas Neto
parent 662c76c4fc
commit 95eda361c1

View File

@ -347,9 +347,9 @@ handle_pad_button_event (MetaWaylandTabletPad *pad,
return FALSE; return FALSE;
if (event->type == CLUTTER_PAD_BUTTON_PRESS) 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) 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 else
return FALSE; return FALSE;