diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-05-02 12:15:39 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-02 18:28:06 +0200 |
commit | e262f93d0a93c52b72fa1e64c29021ef2784d5fb (patch) | |
tree | c7e091dae7181c289520b44f3984d9cd7854a8ca /sway/input/seatop_move_floating.c | |
parent | input: refactor tablet motion into seatop handler (diff) | |
download | sway-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_move_floating.c')
-rw-r--r-- | sway/input/seatop_move_floating.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seatop_move_floating.c b/sway/input/seatop_move_floating.c index 672e2d69..a04fd457 100644 --- a/sway/input/seatop_move_floating.c +++ b/sway/input/seatop_move_floating.c | |||
@@ -23,7 +23,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec, | |||
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | static void handle_motion(struct sway_seat *seat, uint32_t time_msec, | 26 | static void handle_pointer_motion(struct sway_seat *seat, uint32_t time_msec, |
27 | double dx, double dy) { | 27 | double dx, double dy) { |
28 | struct seatop_move_floating_event *e = seat->seatop_data; | 28 | struct seatop_move_floating_event *e = seat->seatop_data; |
29 | struct wlr_cursor *cursor = seat->cursor->cursor; | 29 | struct wlr_cursor *cursor = seat->cursor->cursor; |
@@ -41,7 +41,7 @@ static void handle_unref(struct sway_seat *seat, struct sway_container *con) { | |||
41 | 41 | ||
42 | static const struct sway_seatop_impl seatop_impl = { | 42 | static const struct sway_seatop_impl seatop_impl = { |
43 | .button = handle_button, | 43 | .button = handle_button, |
44 | .motion = handle_motion, | 44 | .pointer_motion = handle_pointer_motion, |
45 | .unref = handle_unref, | 45 | .unref = handle_unref, |
46 | }; | 46 | }; |
47 | 47 | ||