From e262f93d0a93c52b72fa1e64c29021ef2784d5fb Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sat, 2 May 2020 12:15:39 -0400 Subject: input: rename pointer handlers to be unambiguous This commit renames `motion` and `axis` handlers to `pointer_motion` and `pointer_axis`, respectively, to disambiguate them from their tablet (and future touch) handlers. `button` is left as-is, as it is generic across input devices. --- sway/input/seatop_resize_tiling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway/input/seatop_resize_tiling.c') diff --git a/sway/input/seatop_resize_tiling.c b/sway/input/seatop_resize_tiling.c index 020bba1b..825f5044 100644 --- a/sway/input/seatop_resize_tiling.c +++ b/sway/input/seatop_resize_tiling.c @@ -27,7 +27,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec, } } -static void handle_motion(struct sway_seat *seat, uint32_t time_msec, +static void handle_pointer_motion(struct sway_seat *seat, uint32_t time_msec, double dx, double dy) { struct seatop_resize_tiling_event *e = seat->seatop_data; int amount_x = 0; @@ -67,7 +67,7 @@ static void handle_unref(struct sway_seat *seat, struct sway_container *con) { static const struct sway_seatop_impl seatop_impl = { .button = handle_button, - .motion = handle_motion, + .pointer_motion = handle_pointer_motion, .unref = handle_unref, }; -- cgit v1.2.3-54-g00ecf