diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-12 12:28:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 12:28:14 -0400 |
commit | dbaafdfac9057f718be406e972ba15651130e16e (patch) | |
tree | 33fcd285cc70a6cea257b1f3b6d24121d340a270 /include | |
parent | Merge pull request #2620 from ianyfan/commands (diff) | |
parent | i3bar: count references to blocks (diff) | |
download | sway-dbaafdfac9057f718be406e972ba15651130e16e.tar.gz sway-dbaafdfac9057f718be406e972ba15651130e16e.tar.zst sway-dbaafdfac9057f718be406e972ba15651130e16e.zip |
Merge pull request #2622 from ianyfan/i3bar-block-ref
i3bar: count references to blocks
Diffstat (limited to 'include')
-rw-r--r-- | include/swaybar/status_line.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/swaybar/status_line.h b/include/swaybar/status_line.h index de9b98d7..150267cd 100644 --- a/include/swaybar/status_line.h +++ b/include/swaybar/status_line.h | |||
@@ -36,6 +36,7 @@ struct i3bar_protocol_state { | |||
36 | 36 | ||
37 | struct i3bar_block { | 37 | struct i3bar_block { |
38 | struct wl_list link; | 38 | struct wl_list link; |
39 | int ref_count; | ||
39 | char *full_text, *short_text, *align; | 40 | char *full_text, *short_text, *align; |
40 | bool urgent; | 41 | bool urgent; |
41 | uint32_t *color; | 42 | uint32_t *color; |
@@ -73,7 +74,7 @@ void status_line_free(struct status_line *status); | |||
73 | bool i3bar_handle_readable(struct status_line *status); | 74 | bool i3bar_handle_readable(struct status_line *status); |
74 | enum hotspot_event_handling i3bar_block_send_click(struct status_line *status, | 75 | enum hotspot_event_handling i3bar_block_send_click(struct status_line *status, |
75 | struct i3bar_block *block, int x, int y, enum x11_button button); | 76 | struct i3bar_block *block, int x, int y, enum x11_button button); |
76 | void i3bar_block_free(struct i3bar_block *block); | 77 | void i3bar_block_unref(struct i3bar_block *block); |
77 | enum x11_button wl_button_to_x11_button(uint32_t button); | 78 | enum x11_button wl_button_to_x11_button(uint32_t button); |
78 | enum x11_button wl_axis_to_x11_button(uint32_t axis, wl_fixed_t value); | 79 | enum x11_button wl_axis_to_x11_button(uint32_t axis, wl_fixed_t value); |
79 | 80 | ||