From 052e63eecf812279cf2ef0063e1e6a2357f10499 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 11 Apr 2023 12:07:19 +0100 Subject: [PATCH] input: Fix uint/enum declaration mismatch We were declaring that the binding handler took an enum in the declaration (good!), but then using a uint in the definition (oops). cf. wayland/weston!1205 Signed-off-by: Daniel Stone --- libweston/bindings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libweston/bindings.c b/libweston/bindings.c index 2f6ce215..4d2ad94f 100644 --- a/libweston/bindings.c +++ b/libweston/bindings.c @@ -142,7 +142,8 @@ weston_compositor_add_touch_binding(struct weston_compositor *compositor, WL_EXPORT struct weston_binding * weston_compositor_add_tablet_tool_binding(struct weston_compositor *compositor, - uint32_t button, uint32_t modifier, + uint32_t button, + enum weston_keyboard_modifier modifier, weston_tablet_tool_binding_handler_t handler, void *data) {