* the behavior of the other touches.)
*/
- if ((newest->initial_time - oldest->initial_time) < THUMB_TIMEOUT &&
- first->point.y < tp->thumb.lower_thumb_line) {
+ if (newest &&
+ (newest->initial_time - oldest->initial_time) < THUMB_TIMEOUT &&
+ first->point.y < tp->thumb.lower_thumb_line) {
tp_thumb_lift(tp);
return;
}
type == LIBINPUT_TABLET_TOOL_TYPE_PEN) {
libinput_event_destroy(event);
event = libinput_get_event(li);
- t = litest_is_tablet_event(event,
- LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY);
+ litest_is_tablet_event(event,
+ LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY);
libinput_event_destroy(event);
event = libinput_get_event(li);
t = litest_is_tablet_event(event,