aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.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/cursor.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/cursor.c')
-rw-r--r--sway/input/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index b38b62c8..90ed3b5c 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -321,7 +321,7 @@ static void pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
321 321
322 wlr_cursor_move(cursor->cursor, device, dx, dy); 322 wlr_cursor_move(cursor->cursor, device, dx, dy);
323 323
324 seatop_motion(cursor->seat, time_msec, dx, dy); 324 seatop_pointer_motion(cursor->seat, time_msec, dx, dy);
325} 325}
326 326
327static void handle_pointer_motion_relative( 327static void handle_pointer_motion_relative(
@@ -383,7 +383,7 @@ static void handle_pointer_button(struct wl_listener *listener, void *data) {
383 383
384void dispatch_cursor_axis(struct sway_cursor *cursor, 384void dispatch_cursor_axis(struct sway_cursor *cursor,
385 struct wlr_event_pointer_axis *event) { 385 struct wlr_event_pointer_axis *event) {
386 seatop_axis(cursor->seat, event); 386 seatop_pointer_axis(cursor->seat, event);
387} 387}
388 388
389static void handle_pointer_axis(struct wl_listener *listener, void *data) { 389static void handle_pointer_axis(struct wl_listener *listener, void *data) {