mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 07:40:04 +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,7 +749,9 @@ void
|
||||||
tools_tablet_tool_apply_config(struct libinput_tablet_tool *tool,
|
tools_tablet_tool_apply_config(struct libinput_tablet_tool *tool,
|
||||||
struct tools_options *options)
|
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[0],
|
||||||
options->pressure_range[1]);
|
options->pressure_range[1]);
|
||||||
if (options->eraser_button_button)
|
if (options->eraser_button_button)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue