mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04: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
|
|
@ -23,7 +23,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_move_floating_event *e = seat->seatop_data;
|
||||
struct wlr_cursor *cursor = seat->cursor->cursor;
|
||||
|
|
@ -41,7 +41,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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue