mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 04:30:06 +01:00
tablet: remove an always-true part of an if condition
A few lines north of here we return early if neither bit is set. If we get to this point, at least one bit is set so this part of the condition always evaluates to true. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a9e6cd03d0
commit
374d32c6be
1 changed files with 0 additions and 2 deletions
|
|
@ -1257,8 +1257,6 @@ sanitize_pressure_distance(struct tablet_dispatch *tablet,
|
|||
|
||||
/* Keep distance and pressure mutually exclusive */
|
||||
if (distance &&
|
||||
(bit_is_set(tablet->changed_axes, LIBINPUT_TABLET_TOOL_AXIS_DISTANCE) ||
|
||||
bit_is_set(tablet->changed_axes, LIBINPUT_TABLET_TOOL_AXIS_PRESSURE)) &&
|
||||
distance->value > distance->minimum &&
|
||||
pressure->value > pressure->minimum) {
|
||||
if (tool_in_contact) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue