style: apply clang-format

This commit is contained in:
suraj 2026-03-04 21:07:37 +05:30
parent 48c86a275b
commit 07337e906b
2 changed files with 7 additions and 4 deletions

View file

@ -95,8 +95,8 @@ inject_accumulated_motion(struct tp_dispatch *tp, usec_t time)
}
usec_t time_since_last = usec_sub(time, fsm.last_motion_time);
double dist_mm =
EDGE_MOTION_CONFIG_SPEED_MM_S * ((double)usec_as_uint64_t(time_since_last) / 1000000.0);
double dist_mm = EDGE_MOTION_CONFIG_SPEED_MM_S *
((double)usec_as_uint64_t(time_since_last) / 1000000.0);
if (dist_mm < 0.001)
return;
@ -144,7 +144,9 @@ tp_edge_motion_handle_timeout(usec_t now, void *data)
return;
inject_accumulated_motion(fsm_ptr->tp, now);
libinput_timer_set(&fsm_ptr->timer, usec_add(now, usec_from_uint64_t(EDGE_MOTION_CONFIG_MIN_INTERVAL_US)));
libinput_timer_set(
&fsm_ptr->timer,
usec_add(now, usec_from_uint64_t(EDGE_MOTION_CONFIG_MIN_INTERVAL_US)));
}
void

View file

@ -140,7 +140,8 @@ enum tp_tap_touch_state {
TAP_TOUCH_STATE_DEAD, /**< exceeded motion/timeout */
};
/* For edge scrolling, so we only care about right and bottom. For edge motion, we require all four edges */
/* For edge scrolling, so we only care about right and bottom. For edge motion, we
* require all four edges */
enum tp_edge {
EDGE_NONE = 0,
EDGE_RIGHT = bit(0),