diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-05-07 18:57:06 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-10 16:49:35 +0200 |
commit | 726d187d3ce83431a2565cc1b423af99da5f7b6b (patch) | |
tree | 0e24b86e18f4e5abd20aff47eb14dfbf81f897b7 /include | |
parent | input/keyboard: use wlr_keyboard_keymaps_match from wlroots (diff) | |
download | sway-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 'include')
-rw-r--r-- | include/sway/input/seat.h | 5 |
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 { | |||
21 | void (*pointer_axis)(struct sway_seat *seat, | 21 | void (*pointer_axis)(struct sway_seat *seat, |
22 | struct wlr_event_pointer_axis *event); | 22 | struct wlr_event_pointer_axis *event); |
23 | void (*rebase)(struct sway_seat *seat, uint32_t time_msec); | 23 | void (*rebase)(struct sway_seat *seat, uint32_t time_msec); |
24 | void (*tablet_tool_motion)(struct sway_seat *seat, struct sway_tablet *tablet, | 24 | void (*tablet_tool_motion)(struct sway_seat *seat, |
25 | struct sway_tablet_tool *tool, uint32_t time_msec, double dx, double dy); | 25 | struct sway_tablet_tool *tool, uint32_t time_msec, double dx, double dy); |
26 | void (*end)(struct sway_seat *seat); | 26 | void (*end)(struct sway_seat *seat); |
27 | void (*unref)(struct sway_seat *seat, struct sway_container *con); | 27 | void (*unref)(struct sway_seat *seat, struct sway_container *con); |
@@ -269,8 +269,7 @@ void seatop_pointer_axis(struct sway_seat *seat, | |||
269 | struct wlr_event_pointer_axis *event); | 269 | struct wlr_event_pointer_axis *event); |
270 | 270 | ||
271 | void seatop_tablet_tool_motion(struct sway_seat *seat, | 271 | void seatop_tablet_tool_motion(struct sway_seat *seat, |
272 | struct sway_tablet *tablet, struct sway_tablet_tool *tool, | 272 | struct sway_tablet_tool *tool, uint32_t time_msec, double dx, double dy); |
273 | uint32_t time_msec, double dx, double dy); | ||
274 | 273 | ||
275 | void seatop_rebase(struct sway_seat *seat, uint32_t time_msec); | 274 | void seatop_rebase(struct sway_seat *seat, uint32_t time_msec); |
276 | 275 | ||