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

@ -157,8 +157,14 @@ action_create(const char *action_name)
wlr_log(WLR_ERROR, "action name not specified");
return NULL;
}
enum action_type action_type = action_type_from_str(action_name);
if (action_type == ACTION_TYPE_NONE) {
return NULL;
}
struct action *action = znew(*action);
action->type = action_type_from_str(action_name);
action->type = action_type;
wl_list_init(&action->args);
return action;
}
@ -445,8 +451,6 @@ actions_run(struct view *activator, struct server *server,
wlr_log(WLR_ERROR, "Invalid SnapToRegion id: '%s'", region_name);
}
break;
case ACTION_TYPE_NONE:
break;
case ACTION_TYPE_INVALID:
wlr_log(WLR_ERROR, "Not executing unknown action");
break;