mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
WIP: Make a tap on a windows title bar focus it
This is my first attempt, which is basically a simplified copy of the mouse down even handling
This commit is contained in:
parent
5cf5349cd7
commit
b5dcc04ce4
4 changed files with 41 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ struct sway_seatop_impl {
|
|||
enum wlr_button_state state);
|
||||
void (*motion)(struct sway_seat *seat, uint32_t time_msec,
|
||||
double dx, double dy);
|
||||
void (*touch_down)(struct sway_seat *seat, uint32_t time_msec);
|
||||
void (*axis)(struct sway_seat *seat, struct wlr_event_pointer_axis *event);
|
||||
void (*rebase)(struct sway_seat *seat, uint32_t time_msec);
|
||||
void (*end)(struct sway_seat *seat);
|
||||
|
|
@ -258,6 +259,8 @@ 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_touch_down(struct sway_seat *seat, uint32_t time_msec);
|
||||
|
||||
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