aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-02-17 10:13:11 -0500
committeremersion <contact@emersion.fr>2019-02-23 20:00:20 +0100
commit4599907de7af4f5b6335399644b47f4be91bd949 (patch)
tree6b68209ad3fd571f621870ba7b7fef680172c7e4 /include/swaybar
parent512619a9a142035b94875283195a08721ca84fad (diff)
swaybar: process hotspots on touch tap
Diffstat (limited to 'include/swaybar')
-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 {
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,