mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
tools: per-slot-delta initialize the pressure thresholds to zero
Python is unhappy about comparing None to > 0
Fixes: 9c042e9620 ("tools: add pressure threshold support to analyze per-slot-delta")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1243>
This commit is contained in:
parent
2c6fa261a3
commit
a2694738cb
1 changed files with 2 additions and 2 deletions
|
|
@ -250,13 +250,13 @@ def main(argv):
|
|||
parser.add_argument(
|
||||
"--pressure-min",
|
||||
type=int,
|
||||
default=None,
|
||||
default=0,
|
||||
help="Highlight touches above this pressure minimum",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--pressure-max",
|
||||
type=int,
|
||||
default=None,
|
||||
default=0,
|
||||
help="Highlight touches below this pressure maximum",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue