mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
input: refactor tablet motion into seatop handler
This commit moves tablet motion logic into a seatop handler. As a side-effect of seatop implementations being able to receive tablet motion events, fixes #5232.
This commit is contained in:
parent
9362003cba
commit
ae3ec745f8
4 changed files with 61 additions and 13 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <wlr/util/edges.h>
|
||||
#include "sway/config.h"
|
||||
#include "sway/input/input-manager.h"
|
||||
#include "sway/input/tablet.h"
|
||||
#include "sway/input/text_input.h"
|
||||
|
||||
struct sway_seat;
|
||||
|
|
@ -19,6 +20,8 @@ struct sway_seatop_impl {
|
|||
double dx, double dy);
|
||||
void (*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,
|
||||
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);
|
||||
void (*render)(struct sway_seat *seat, struct sway_output *output,
|
||||
|
|
@ -261,6 +264,10 @@ void seatop_button(struct sway_seat *seat, uint32_t time_msec,
|
|||
void seatop_motion(struct sway_seat *seat, uint32_t time_msec,
|
||||
double dx, double dy);
|
||||
|
||||
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);
|
||||
|
||||
void seatop_axis(struct sway_seat *seat, struct wlr_event_pointer_axis *event);
|
||||
|
||||
void seatop_rebase(struct sway_seat *seat, uint32_t time_msec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue