From: Peter Hutterer Date: Sun, 4 Sep 2022 23:15:39 +0000 (+1000) Subject: evdev: rename post_trackpoint_scroll to post_button_scroll X-Git-Tag: 1.22.0~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bb82faab1786a194ad37456dc35d5a9953d3d1e;p=platform%2Fupstream%2Flibinput.git evdev: rename post_trackpoint_scroll to post_button_scroll This is no longer trackpoint-only, so let's rename this. Signed-off-by: Peter Hutterer --- diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c index 97cf487d..5dc1ce48 100644 --- a/src/evdev-fallback.c +++ b/src/evdev-fallback.c @@ -100,9 +100,9 @@ fallback_normalize_delta(struct evdev_device *device, } static inline bool -post_trackpoint_scroll(struct evdev_device *device, - struct normalized_coords unaccel, - uint64_t time) +post_button_scroll(struct evdev_device *device, + struct normalized_coords unaccel, + uint64_t time) { if (device->scroll.method != LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN) return false; @@ -190,7 +190,7 @@ fallback_flush_relative_motion(struct fallback_dispatch *dispatch, dispatch->rel.y = 0; /* Use unaccelerated deltas for pointing stick scroll */ - if (post_trackpoint_scroll(device, unaccel, time)) + if (post_button_scroll(device, unaccel, time)) return; if (device->pointer.filter) {