aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/swaybar/bar.h1
-rw-r--r--include/swaybar/input.h13
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 {
34 34
35 struct swaybar_config *config; 35 struct swaybar_config *config;
36 struct swaybar_pointer pointer; 36 struct swaybar_pointer pointer;
37 struct swaybar_touch touch;
37 struct status_line *status; 38 struct status_line *status;
38 39
39 struct loop *eventloop; 40 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 {
22 uint32_t serial; 22 uint32_t serial;
23}; 23};
24 24
25struct touch_slot {
26 int32_t id;
27 uint32_t time;
28 struct swaybar_output *output;
29 double start_x, start_y;
30 double x, y;
31};
32
33struct swaybar_touch {
34 struct wl_touch *touch;
35 struct touch_slot slots[16];
36};
37
25enum hotspot_event_handling { 38enum hotspot_event_handling {
26 HOTSPOT_IGNORE, 39 HOTSPOT_IGNORE,
27 HOTSPOT_PROCESS, 40 HOTSPOT_PROCESS,