swaybar: process hotspots on touch tap

This commit is contained in:
Drew DeVault 2019-02-17 10:13:11 -05:00 committed by emersion
parent 512619a9a1
commit 4599907de7
3 changed files with 138 additions and 15 deletions

View file

@ -22,6 +22,19 @@ struct swaybar_pointer {
uint32_t serial;
};
struct touch_slot {
int32_t id;
uint32_t time;
struct swaybar_output *output;
double start_x, start_y;
double x, y;
};
struct swaybar_touch {
struct wl_touch *touch;
struct touch_slot slots[16];
};
enum hotspot_event_handling {
HOTSPOT_IGNORE,
HOTSPOT_PROCESS,