mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 22:40:42 +01:00
tablet: fix eraser button get_default_mode/get_default_button return values
Co-Authored-by: Claude Code <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1444>
This commit is contained in:
parent
a0dc0997f5
commit
cd9d6c66fd
1 changed files with 2 additions and 2 deletions
|
|
@ -5206,7 +5206,7 @@ libinput_tablet_tool_config_eraser_button_get_default_mode(
|
|||
if (!libinput_tablet_tool_config_eraser_button_get_modes(tool))
|
||||
return LIBINPUT_CONFIG_ERASER_BUTTON_DEFAULT;
|
||||
|
||||
return tool->config.eraser_button.get_mode(tool);
|
||||
return tool->config.eraser_button.get_default_mode(tool);
|
||||
}
|
||||
|
||||
LIBINPUT_EXPORT enum libinput_config_status
|
||||
|
|
@ -5239,7 +5239,7 @@ libinput_tablet_tool_config_eraser_button_get_default_button(
|
|||
if (!libinput_tablet_tool_config_eraser_button_get_modes(tool))
|
||||
return 0;
|
||||
|
||||
return tool->config.eraser_button.get_button(tool);
|
||||
return tool->config.eraser_button.get_default_button(tool);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBWACOM
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue