aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_resize_floating.c
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-05-02 12:15:39 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-05-02 18:28:06 +0200
commite262f93d0a93c52b72fa1e64c29021ef2784d5fb (patch)
treec7e091dae7181c289520b44f3984d9cd7854a8ca /sway/input/seatop_resize_floating.c
parentinput: refactor tablet motion into seatop handler (diff)
downloadsway-e262f93d0a93c52b72fa1e64c29021ef2784d5fb.tar.gz
sway-e262f93d0a93c52b72fa1e64c29021ef2784d5fb.tar.zst
sway-e262f93d0a93c52b72fa1e64c29021ef2784d5fb.zip
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.
Diffstat (limited to 'sway/input/seatop_resize_floating.c')
-rw-r--r--sway/input/seatop_resize_floating.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seatop_resize_floating.c b/sway/input/seatop_resize_floating.c
index 4e5db112..c9fa1e9b 100644
--- a/sway/input/seatop_resize_floating.c
+++ b/sway/input/seatop_resize_floating.c
@@ -25,7 +25,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec,
25 } 25 }
26} 26}
27 27
28static void handle_motion(struct sway_seat *seat, uint32_t time_msec, 28static void handle_pointer_motion(struct sway_seat *seat, uint32_t time_msec,
29 double dx, double dy) { 29 double dx, double dy) {
30 struct seatop_resize_floating_event *e = seat->seatop_data; 30 struct seatop_resize_floating_event *e = seat->seatop_data;
31 struct sway_container *con = e->con; 31 struct sway_container *con = e->con;
@@ -131,7 +131,7 @@ static void handle_unref(struct sway_seat *seat, struct sway_container *con) {
131 131
132static const struct sway_seatop_impl seatop_impl = { 132static const struct sway_seatop_impl seatop_impl = {
133 .button = handle_button, 133 .button = handle_button,
134 .motion = handle_motion, 134 .pointer_motion = handle_pointer_motion,
135 .unref = handle_unref, 135 .unref = handle_unref,
136}; 136};
137 137