aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-05-07 18:57:06 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-05-10 16:49:35 +0200
commit726d187d3ce83431a2565cc1b423af99da5f7b6b (patch)
tree0e24b86e18f4e5abd20aff47eb14dfbf81f897b7 /sway/input/seat.c
parentinput/keyboard: use wlr_keyboard_keymaps_match from wlroots (diff)
downloadsway-726d187d3ce83431a2565cc1b423af99da5f7b6b.tar.gz
sway-726d187d3ce83431a2565cc1b423af99da5f7b6b.tar.zst
sway-726d187d3ce83431a2565cc1b423af99da5f7b6b.zip
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.c5
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,
1464} 1464}
1465 1465
1466void seatop_tablet_tool_motion(struct sway_seat *seat, 1466void seatop_tablet_tool_motion(struct sway_seat *seat,
1467 struct sway_tablet *tablet, struct sway_tablet_tool *tool, 1467 struct sway_tablet_tool *tool, uint32_t time_msec, double dx, double dy) {
1468 uint32_t time_msec, double dx, double dy) {
1469 if (seat->seatop_impl->tablet_tool_motion) { 1468 if (seat->seatop_impl->tablet_tool_motion) {
1470 seat->seatop_impl->tablet_tool_motion(seat, tablet, tool, time_msec, dx, dy); 1469 seat->seatop_impl->tablet_tool_motion(seat, tool, time_msec, dx, dy);
1471 } else { 1470 } else {
1472 seatop_pointer_motion(seat, time_msec, dx, dy); 1471 seatop_pointer_motion(seat, time_msec, dx, dy);
1473 } 1472 }