aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-05-07 18:57:06 -0400
committerFurkan Sahin <furkan-dev@proton.me>2020-05-07 18:57:06 -0400
commit5f8e41c6d8eb3e4abda7a3867ab23cd78428cd25 (patch)
tree0e24b86e18f4e5abd20aff47eb14dfbf81f897b7 /include
parentff770a0f40a9a2a83a5247b550450859fb77f513 (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 'include')
-rw-r--r--include/sway/input/seat.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 2e98a244..fa232aa2 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -21,7 +21,7 @@ struct sway_seatop_impl {
void (*pointer_axis)(struct sway_seat *seat,
struct wlr_event_pointer_axis *event);
void (*rebase)(struct sway_seat *seat, uint32_t time_msec);
- void (*tablet_tool_motion)(struct sway_seat *seat, struct sway_tablet *tablet,
+ void (*tablet_tool_motion)(struct sway_seat *seat,
struct sway_tablet_tool *tool, uint32_t time_msec, double dx, double dy);
void (*end)(struct sway_seat *seat);
void (*unref)(struct sway_seat *seat, struct sway_container *con);
@@ -269,8 +269,7 @@ void seatop_pointer_axis(struct sway_seat *seat,
struct wlr_event_pointer_axis *event);
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);
void seatop_rebase(struct sway_seat *seat, uint32_t time_msec);