src/config/rcxml.c: allow clearing key/mouse bindings

Fixes #567
This commit is contained in:
Consolatis 2023-01-29 04:06:46 +01:00
parent 14a0c83ae0
commit 4a8b50603e
9 changed files with 115 additions and 18 deletions

View file

@ -279,7 +279,10 @@ fill_item(char *nodename, char *content)
*/
} else if (!strcmp(nodename, "name.action")) {
current_item_action = action_create(content);
wl_list_append(&current_item->actions, &current_item_action->link);
if (current_item_action) {
wl_list_append(&current_item->actions,
&current_item_action->link);
}
} else if (!current_item_action) {
wlr_log(WLR_ERROR, "expect <action name=\"\"> element first. "
"nodename: '%s' content: '%s'", nodename, content);