diff options
author | 2017-08-31 20:35:03 +0000 | |
---|---|---|
committer | 2017-08-31 20:35:03 +0000 | |
commit | 013df6a8a5b99c873cd08e8b1cd6350def2a0b2c (patch) | |
tree | 4187dee4d31e39deec32cbf2005e4b6b4b910a84 /include/swaybar/status_line.h | |
parent | Translate README to portuguese (diff) | |
parent | Merge pull request #1336 from akokshar/master (diff) | |
download | sway-013df6a8a5b99c873cd08e8b1cd6350def2a0b2c.tar.gz sway-013df6a8a5b99c873cd08e8b1cd6350def2a0b2c.tar.zst sway-013df6a8a5b99c873cd08e8b1cd6350def2a0b2c.zip |
Merge branch 'master' into master
Diffstat (limited to 'include/swaybar/status_line.h')
-rw-r--r-- | include/swaybar/status_line.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/swaybar/status_line.h b/include/swaybar/status_line.h index 9b77e8a7..0664ddee 100644 --- a/include/swaybar/status_line.h +++ b/include/swaybar/status_line.h | |||
@@ -13,6 +13,7 @@ struct status_line { | |||
13 | list_t *block_line; | 13 | list_t *block_line; |
14 | const char *text_line; | 14 | const char *text_line; |
15 | command_protocol protocol; | 15 | command_protocol protocol; |
16 | bool click_events; | ||
16 | }; | 17 | }; |
17 | 18 | ||
18 | struct status_block { | 19 | struct status_block { |
@@ -31,6 +32,10 @@ struct status_block { | |||
31 | int border_bottom; | 32 | int border_bottom; |
32 | int border_left; | 33 | int border_left; |
33 | int border_right; | 34 | int border_right; |
35 | |||
36 | // Set during rendering | ||
37 | int x; | ||
38 | int width; | ||
34 | }; | 39 | }; |
35 | 40 | ||
36 | /** | 41 | /** |
@@ -44,6 +49,11 @@ struct status_line *init_status_line(); | |||
44 | bool handle_status_line(struct bar *bar); | 49 | bool handle_status_line(struct bar *bar); |
45 | 50 | ||
46 | /** | 51 | /** |
52 | * Handle mouse clicks. | ||
53 | */ | ||
54 | bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button); | ||
55 | |||
56 | /** | ||
47 | * Free status line struct. | 57 | * Free status line struct. |
48 | */ | 58 | */ |
49 | void free_status_line(struct status_line *line); | 59 | void free_status_line(struct status_line *line); |