diff options
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/bar.h | 1 | ||||
-rw-r--r-- | include/swaybar/input.h | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 2518d5aa..dfadc200 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -34,6 +34,7 @@ struct swaybar { struct swaybar_config *config; struct swaybar_pointer pointer; + struct swaybar_touch touch; struct status_line *status; struct loop *eventloop; 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, |