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:
ArenM 2020-04-24 19:16:25 -04:00
parent 5cf5349cd7
commit b5dcc04ce4
4 changed files with 41 additions and 0 deletions

View file

@ -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);