summaryrefslogtreecommitdiffstats
path: root/include/swaybar/input.h
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/input.h
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/input.h')
-rw-r--r--include/swaybar/input.h13
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 {
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,