From 34da27650d757ced7733c87ee82583e62146d86f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 19 Jun 2025 10:11:14 +1000 Subject: [PATCH] tablet: take an uint32_t for the eraser button For consistency with other set_button configuration options. Part-of: --- src/evdev-tablet.c | 2 +- src/libinput-private.h | 2 +- src/libinput.c | 2 +- src/libinput.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index a61a2465..a0a1793f 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -1330,7 +1330,7 @@ eraser_button_get_default_mode(struct libinput_tablet_tool *tool) } static enum libinput_config_status -eraser_button_set_button(struct libinput_tablet_tool *tool, unsigned int button) +eraser_button_set_button(struct libinput_tablet_tool *tool, uint32_t button) { if (!libinput_tablet_tool_has_button(tool, button)) return LIBINPUT_CONFIG_STATUS_INVALID; diff --git a/src/libinput-private.h b/src/libinput-private.h index 4fddc655..8063ec15 100644 --- a/src/libinput-private.h +++ b/src/libinput-private.h @@ -548,7 +548,7 @@ struct libinput_tablet_tool_config_eraser_button { enum libinput_config_eraser_button_mode (*get_mode)(struct libinput_tablet_tool *tool); enum libinput_config_eraser_button_mode (*get_default_mode)(struct libinput_tablet_tool *tool); - enum libinput_config_status (*set_button)(struct libinput_tablet_tool *tool, unsigned int button); + enum libinput_config_status (*set_button)(struct libinput_tablet_tool *tool, uint32_t button); unsigned int (*get_button)(struct libinput_tablet_tool *tool); unsigned int (*get_default_button)(struct libinput_tablet_tool *tool); }; diff --git a/src/libinput.c b/src/libinput.c index 4d4620b4..87945f02 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -5104,7 +5104,7 @@ libinput_tablet_tool_config_eraser_button_get_default_mode(struct libinput_table LIBINPUT_EXPORT enum libinput_config_status libinput_tablet_tool_config_eraser_button_set_button(struct libinput_tablet_tool *tool, - unsigned int button) + uint32_t button) { if (!libinput_tablet_tool_config_eraser_button_get_modes(tool)) return LIBINPUT_CONFIG_STATUS_UNSUPPORTED; diff --git a/src/libinput.h b/src/libinput.h index 09368f06..089c1edd 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -7124,7 +7124,7 @@ libinput_tablet_tool_config_eraser_button_get_default_mode(struct libinput_table */ enum libinput_config_status libinput_tablet_tool_config_eraser_button_set_button(struct libinput_tablet_tool *tool, - unsigned int button); + uint32_t button); /** * @ingroup config