From a6ad084280b205e8e6009f469aa64d63c4ae8b5b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 26 Nov 2025 10:32:18 +1000 Subject: [PATCH] tablet: return the wanted eraser button mode/button from the config This matches our behavior for other settings - always return the user-configured setting from the configuration API, not the current setting (which may be delayed until the device is in a netural state). Part-of: --- src/evdev-tablet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index 41495ce4..f60ba7a5 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -1296,7 +1296,7 @@ eraser_button_set_mode(struct libinput_tablet_tool *tool, static enum libinput_config_eraser_button_mode eraser_button_get_mode(struct libinput_tablet_tool *tool) { - return tool->eraser_button.mode; + return tool->eraser_button.want_mode; } static enum libinput_config_eraser_button_mode @@ -1330,7 +1330,7 @@ eraser_button_set_button(struct libinput_tablet_tool *tool, uint32_t button) static unsigned int eraser_button_get_button(struct libinput_tablet_tool *tool) { - return tool->eraser_button.button; + return tool->eraser_button.want_button; } static unsigned int