mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
list.c: rename free_flat_list to list_free_items_and_destroy
This commit is contained in:
parent
c8776fac42
commit
98c1e19466
12 changed files with 20 additions and 20 deletions
|
|
@ -23,11 +23,11 @@ struct cmd_results *bar_cmd_modifier(int argc, char **argv) {
|
|||
} else {
|
||||
error = cmd_results_new(CMD_INVALID, "modifier",
|
||||
"Unknown modifier '%s'", split->items[i]);
|
||||
free_flat_list(split);
|
||||
list_free_items_and_destroy(split);
|
||||
return error;
|
||||
}
|
||||
}
|
||||
free_flat_list(split);
|
||||
list_free_items_and_destroy(split);
|
||||
config->current_bar->modifier = mod;
|
||||
wlr_log(WLR_DEBUG,
|
||||
"Show/Hide the bar when pressing '%s' in hide mode.", argv[0]);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ void free_sway_binding(struct sway_binding *binding) {
|
|||
return;
|
||||
}
|
||||
|
||||
free_flat_list(binding->keys);
|
||||
list_free_items_and_destroy(binding->keys);
|
||||
free(binding->input);
|
||||
free(binding->command);
|
||||
free(binding);
|
||||
|
|
@ -220,14 +220,14 @@ static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv,
|
|||
uint32_t *key = calloc(1, sizeof(uint32_t));
|
||||
if (!key) {
|
||||
free_sway_binding(binding);
|
||||
free_flat_list(split);
|
||||
list_free_items_and_destroy(split);
|
||||
return cmd_results_new(CMD_FAILURE, bindtype,
|
||||
"Unable to allocate binding key");
|
||||
}
|
||||
*key = key_val;
|
||||
list_add(binding->keys, key);
|
||||
}
|
||||
free_flat_list(split);
|
||||
list_free_items_and_destroy(split);
|
||||
binding->order = binding_order++;
|
||||
|
||||
// refine region of interest for mouse binding once we are certain
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ static void do_reload(void *data) {
|
|||
|
||||
if (!load_main_config(config->current_config_path, true, false)) {
|
||||
wlr_log(WLR_ERROR, "Error(s) reloading config");
|
||||
free_flat_list(bar_ids);
|
||||
list_free_items_and_destroy(bar_ids);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ static void do_reload(void *data) {
|
|||
}
|
||||
}
|
||||
}
|
||||
free_flat_list(bar_ids);
|
||||
list_free_items_and_destroy(bar_ids);
|
||||
|
||||
config_update_font_height(true);
|
||||
root_for_each_container(rebuild_textures_iterator, NULL);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ static struct workspace_config *workspace_config_find_or_create(char *ws_name) {
|
|||
|
||||
void free_workspace_config(struct workspace_config *wsc) {
|
||||
free(wsc->workspace);
|
||||
free_flat_list(wsc->outputs);
|
||||
list_free_items_and_destroy(wsc->outputs);
|
||||
free(wsc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue