WIP: implement touch scrolling

This commit is contained in:
Hugo Osvaldo Barrera 2023-04-19 12:03:19 +02:00
parent a2db3cdd5b
commit 6f0327eb43
4 changed files with 122 additions and 3 deletions

View file

@ -157,6 +157,16 @@ struct seat {
bool have_discrete;
} mouse;
/* Pointer state */
struct wl_touch *wl_touch;
struct {
uint32_t serial; // Unused for now; usable later for copying.
int32_t id;
struct wl_surface *surface;
int32_t x;
int32_t y;
} touch;
/* Clipboard */
struct wl_data_device *data_device;
struct zwp_primary_selection_device_v1 *primary_selection_device;