diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-23 20:27:56 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-07-23 20:31:11 -0400 |
commit | f4b882475eee7a81c206c7825616cc4656b2f60b (patch) | |
tree | 38e6ebf81b235424f105dcbcbb194e5e9eac70c0 /include/swaybar/bar.h | |
parent | Implement pid->workspace tracking (diff) | |
parent | Merge pull request #2342 from RyanDwyer/update-cursor (diff) | |
download | sway-f4b882475eee7a81c206c7825616cc4656b2f60b.tar.gz sway-f4b882475eee7a81c206c7825616cc4656b2f60b.tar.zst sway-f4b882475eee7a81c206c7825616cc4656b2f60b.zip |
Merge branch 'master' into pid-workspaces
Diffstat (limited to 'include/swaybar/bar.h')
-rw-r--r-- | include/swaybar/bar.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index af478f33..1cecea71 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -16,11 +16,29 @@ struct swaybar_pointer { | |||
16 | int x, y; | 16 | int x, y; |
17 | }; | 17 | }; |
18 | 18 | ||
19 | enum x11_button { | ||
20 | NONE, | ||
21 | LEFT, | ||
22 | MIDDLE, | ||
23 | RIGHT, | ||
24 | SCROLL_UP, | ||
25 | SCROLL_DOWN, | ||
26 | SCROLL_LEFT, | ||
27 | SCROLL_RIGHT, | ||
28 | BACK, | ||
29 | FORWARD, | ||
30 | }; | ||
31 | |||
32 | enum hotspot_event_handling { | ||
33 | HOTSPOT_IGNORE, | ||
34 | HOTSPOT_PROCESS, | ||
35 | }; | ||
36 | |||
19 | struct swaybar_hotspot { | 37 | struct swaybar_hotspot { |
20 | struct wl_list link; | 38 | struct wl_list link; |
21 | int x, y, width, height; | 39 | int x, y, width, height; |
22 | void (*callback)(struct swaybar_output *output, | 40 | enum hotspot_event_handling (*callback)(struct swaybar_output *output, |
23 | int x, int y, uint32_t button, void *data); | 41 | int x, int y, enum x11_button button, void *data); |
24 | void (*destroy)(void *data); | 42 | void (*destroy)(void *data); |
25 | void *data; | 43 | void *data; |
26 | }; | 44 | }; |