aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaybar
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2019-02-17 10:13:11 -0500
committerLibravatar emersion <contact@emersion.fr>2019-02-23 20:00:20 +0100
commit4599907de7af4f5b6335399644b47f4be91bd949 (patch)
tree6b68209ad3fd571f621870ba7b7fef680172c7e4 /include/swaybar
parentMerge pull request #3700 from emersion/refactor-dnd (diff)
downloadsway-4599907de7af4f5b6335399644b47f4be91bd949.tar.gz
sway-4599907de7af4f5b6335399644b47f4be91bd949.tar.zst
sway-4599907de7af4f5b6335399644b47f4be91bd949.zip
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 {
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,