mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
input: Percolate swipe gestures through seat handlers
Let swipe pointer gestures percolate through seat and default seatop handlers so sway-internal handling can be added if desired. As a side-effect this makes swipes count as user activity. There should be no other functional changes. Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
This commit is contained in:
parent
4e302fb402
commit
b518870bc1
4 changed files with 68 additions and 9 deletions
|
|
@ -19,6 +19,12 @@ struct sway_seatop_impl {
|
|||
void (*pointer_motion)(struct sway_seat *seat, uint32_t time_msec);
|
||||
void (*pointer_axis)(struct sway_seat *seat,
|
||||
struct wlr_event_pointer_axis *event);
|
||||
void (*swipe_begin)(struct sway_seat *seat,
|
||||
struct wlr_event_pointer_swipe_begin *event);
|
||||
void (*swipe_update)(struct sway_seat *seat,
|
||||
struct wlr_event_pointer_swipe_update *event);
|
||||
void (*swipe_end)(struct sway_seat *seat,
|
||||
struct wlr_event_pointer_swipe_end *event);
|
||||
void (*rebase)(struct sway_seat *seat, uint32_t time_msec);
|
||||
void (*tablet_tool_motion)(struct sway_seat *seat,
|
||||
struct sway_tablet_tool *tool, uint32_t time_msec);
|
||||
|
|
@ -280,6 +286,13 @@ void seatop_tablet_tool_tip(struct sway_seat *seat,
|
|||
void seatop_tablet_tool_motion(struct sway_seat *seat,
|
||||
struct sway_tablet_tool *tool, uint32_t time_msec);
|
||||
|
||||
void seatop_swipe_begin(struct sway_seat *seat,
|
||||
struct wlr_event_pointer_swipe_begin *event);
|
||||
void seatop_swipe_update(struct sway_seat *seat,
|
||||
struct wlr_event_pointer_swipe_update *event);
|
||||
void seatop_swipe_end(struct sway_seat *seat,
|
||||
struct wlr_event_pointer_swipe_end *event);
|
||||
|
||||
void seatop_rebase(struct sway_seat *seat, uint32_t time_msec);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue