diff options
| author | kolunmi <kolunmi@tutanota.com> | 2023-02-19 11:06:31 -0700 |
|---|---|---|
| committer | kolunmi <kolunmi@tutanota.com> | 2023-02-19 11:06:31 -0700 |
| commit | 2710f3428d3ea25fbbbfa0df0ef6b227b7cf7601 (patch) | |
| tree | 58af503cb19e8e79beb258a3bf6ccf3e9bb4470b /dwlb.c | |
| parent | d25242c29949a209b5063e64f8ecd35b153fa260 (diff) | |
| download | dwlb-2710f3428d3ea25fbbbfa0df0ef6b227b7cf7601.tar.gz | |
minor fix and update README for status buttons
Diffstat (limited to 'dwlb.c')
| -rw-r--r-- | dwlb.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1096,6 +1096,14 @@ set_status(Bar *bar, char *text) bar->status[str_pos++] = *p; utf8decode(&state, &codepoint, *p); } + + if (left_button) + left_button->end = bar->status + str_pos; + if (middle_button) + middle_button->end = bar->status + str_pos; + if (right_button) + right_button->end = bar->status + str_pos; + bar->status[str_pos] = '\0'; } else { snprintf(bar->status, sizeof bar->status, "%s", text); @@ -1498,6 +1506,8 @@ main(int argc, char **argv) /* Clean everything up */ close(sock_fd); unlink(socketpath); + + free(stdinbuf); zwlr_layer_shell_v1_destroy(layer_shell); zxdg_output_manager_v1_destroy(output_manager); |