diff options
author | Tudor Brindus <[email protected]> | 2020-05-07 18:57:06 -0400 |
---|---|---|
committer | Simon Ser <[email protected]> | 2020-05-10 16:49:35 +0200 |
commit | 726d187d3ce83431a2565cc1b423af99da5f7b6b (patch) | |
tree | 0e24b86e18f4e5abd20aff47eb14dfbf81f897b7 /sway/input/seat.c | |
parent | 7c37e9d01e84f63604bf077bbea123d4acf0c411 (diff) |
input/tablet: simplify parameter plumbing for tablet references
This is a small cleanup commit for removing `sway_tablet` parameters
from functions that already accept `sway_tablet_tool`, since the tablet
reference can be accessed through `tool->tablet`.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 4abffb25..aa46940d 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1464,10 +1464,9 @@ void seatop_pointer_axis(struct sway_seat *seat, } void seatop_tablet_tool_motion(struct sway_seat *seat, - struct sway_tablet *tablet, struct sway_tablet_tool *tool, - uint32_t time_msec, double dx, double dy) { + struct sway_tablet_tool *tool, uint32_t time_msec, double dx, double dy) { if (seat->seatop_impl->tablet_tool_motion) { - seat->seatop_impl->tablet_tool_motion(seat, tablet, tool, time_msec, dx, dy); + seat->seatop_impl->tablet_tool_motion(seat, tool, time_msec, dx, dy); } else { seatop_pointer_motion(seat, time_msec, dx, dy); } |