mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
swaybar: Move swaybar_teardown to free_state
This commit is contained in:
parent
fcc47cb3bd
commit
6140f9c42c
6 changed files with 87 additions and 49 deletions
|
|
@ -152,8 +152,7 @@ static void ipc_parse_config(struct swaybar_config *config, const char *payload)
|
|||
|
||||
static void ipc_update_workspaces(struct swaybar_state *state) {
|
||||
if (state->output->workspaces) {
|
||||
list_foreach(state->output->workspaces, free_workspace);
|
||||
list_free(state->output->workspaces);
|
||||
free_workspaces(state->output->workspaces);
|
||||
}
|
||||
state->output->workspaces = create_list();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue