From 141f571aae7938aa8e6407d9521feff12e3031a6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 23 Oct 2025 15:14:52 +1000 Subject: [PATCH] tools: don't set the tool pressure range if we're using the default Part-of: --- tools/shared.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/shared.c b/tools/shared.c index 7d1442fb..31ca9919 100644 --- a/tools/shared.c +++ b/tools/shared.c @@ -749,9 +749,11 @@ void tools_tablet_tool_apply_config(struct libinput_tablet_tool *tool, struct tools_options *options) { - libinput_tablet_tool_config_pressure_range_set(tool, - options->pressure_range[0], - options->pressure_range[1]); + 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) libinput_tablet_tool_config_eraser_button_set_button( tool,