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