From 726d187d3ce83431a2565cc1b423af99da5f7b6b Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Thu, 7 May 2020 18:57:06 -0400 Subject: 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`. --- sway/input/seat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sway/input/seat.c') 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); } -- cgit v1.2.3