mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
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:
parent
48a3391f33
commit
141f571aae
1 changed files with 5 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue