diff options
| author | Drew DeVault <sir@cmpwn.com> | 2019-02-17 10:13:11 -0500 |
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2019-02-23 20:00:20 +0100 |
| commit | 4599907de7af4f5b6335399644b47f4be91bd949 (patch) | |
| tree | 6b68209ad3fd571f621870ba7b7fef680172c7e4 /include/swaybar/input.h | |
| parent | 512619a9a142035b94875283195a08721ca84fad (diff) | |
swaybar: process hotspots on touch tap
Diffstat (limited to 'include/swaybar/input.h')
| -rw-r--r-- | include/swaybar/input.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/swaybar/input.h b/include/swaybar/input.h index d76cd551..88e5abc5 100644 --- a/include/swaybar/input.h +++ b/include/swaybar/input.h @@ -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, |
