mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
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.
This commit is contained in:
parent
ae3ec745f8
commit
e262f93d0a
9 changed files with 39 additions and 37 deletions
|
|
@ -321,7 +321,7 @@ static void pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
|
|||
|
||||
wlr_cursor_move(cursor->cursor, device, dx, dy);
|
||||
|
||||
seatop_motion(cursor->seat, time_msec, dx, dy);
|
||||
seatop_pointer_motion(cursor->seat, time_msec, dx, dy);
|
||||
}
|
||||
|
||||
static void handle_pointer_motion_relative(
|
||||
|
|
@ -383,7 +383,7 @@ static void handle_pointer_button(struct wl_listener *listener, void *data) {
|
|||
|
||||
void dispatch_cursor_axis(struct sway_cursor *cursor,
|
||||
struct wlr_event_pointer_axis *event) {
|
||||
seatop_axis(cursor->seat, event);
|
||||
seatop_pointer_axis(cursor->seat, event);
|
||||
}
|
||||
|
||||
static void handle_pointer_axis(struct wl_listener *listener, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue