assert(key);
struct action_arg *arg;
wl_list_for_each(arg, &action->args, link) {
+ if (!arg->key) {
+ continue;
+ }
if (!strcasecmp(key, arg->key)) {
return action_str_from_arg(arg);
}
assert(key);
struct action_arg *arg;
wl_list_for_each(arg, &action->args, link) {
+ if (!arg->key) {
+ continue;
+ }
if (!strcasecmp(key, arg->key)) {
assert(arg->type == LAB_ACTION_ARG_BOOL);
return ((struct action_arg_bool *)arg)->value;
case ACTION_TYPE_SEND_TO_DESKTOP:
if (view) {
const char *to = get_arg_value_str(action, "to", NULL);
+ if (!to) {
+ wlr_log(WLR_ERROR,
+ "Missing 'to' argument for SendToDesktop");
+ break;
+ }
bool follow = get_arg_value_bool(action, "follow", true);
struct workspace *target = workspaces_find(view->workspace, to);
if (target) {