tools: don't set the tool pressure range if we're using the default

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1340>
This commit is contained in:
Peter Hutterer 2025-10-23 15:14:52 +10:00 committed by Marge Bot
parent 48a3391f33
commit 141f571aae

View file

@ -749,7 +749,9 @@ void
tools_tablet_tool_apply_config(struct libinput_tablet_tool *tool,
struct tools_options *options)
{
libinput_tablet_tool_config_pressure_range_set(tool,
if (options->pressure_range[0] != 0.0 || options->pressure_range[1] != 1.0)
libinput_tablet_tool_config_pressure_range_set(
tool,
options->pressure_range[0],
options->pressure_range[1]);
if (options->eraser_button_button)