tp->gesture.state =
tp_gesture_handle_state_pinch(tp, time);
- evdev_log_debug(tp->device,
- "gesture state: %s → %s\n",
- gesture_state_to_str(oldstate),
- gesture_state_to_str(tp->gesture.state));
+ if (oldstate != tp->gesture.state)
+ evdev_log_debug(tp->device,
+ "gesture state: %s → %s\n",
+ gesture_state_to_str(oldstate),
+ gesture_state_to_str(tp->gesture.state));
}
void
if (tp->tap.state == TAP_STATE_IDLE || tp->tap.state == TAP_STATE_DEAD)
tp_tap_clear_timer(tp);
- evdev_log_debug(tp->device,
- "tap: touch %d state %s → %s → %s\n",
- t ? (int)t->index : -1,
- tap_state_to_str(current),
- tap_event_to_str(event),
- tap_state_to_str(tp->tap.state));
+ if (current != tp->tap.state)
+ evdev_log_debug(tp->device,
+ "tap: touch %d state %s → %s → %s\n",
+ t ? (int)t->index : -1,
+ tap_state_to_str(current),
+ tap_event_to_str(event),
+ tap_state_to_str(tp->tap.state));
}
static bool