sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 4cb28de89fa50c2c992702c238d54d16a0269553
parent 15dadaaa4496085e064f290708267e703b3cd029
Author: Ian Fan <ianfan0@gmail.com>
Date:   Sat, 15 Sep 2018 10:14:21 +0100

swaybar: remove block links upon exit

Diffstat:
Mswaybar/status_line.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/swaybar/status_line.c b/swaybar/status_line.c @@ -127,13 +127,15 @@ void status_line_free(struct status_line *status) { close(status->write_fd); kill(status->pid, SIGTERM); switch (status->protocol) { - case PROTOCOL_I3BAR:; + case PROTOCOL_I3BAR: { struct i3bar_block *block, *tmp; wl_list_for_each_safe(block, tmp, &status->blocks, link) { + wl_list_remove(&block->link); i3bar_block_unref(block); } free(status->i3bar_state.buffer); break; + } default: free(status->text_state.buffer); break;