mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
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`.
This commit is contained in:
parent
7c37e9d01e
commit
726d187d3c
4 changed files with 14 additions and 18 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue