struct action *action_create(const char *action_name);
void action_list_free(struct wl_list *action_list);
-void action(struct view *activator, struct server *server,
+void actions_run(struct view *activator, struct server *server,
struct wl_list *actions, uint32_t resize_edges);
#endif
}
void
-action(struct view *activator, struct server *server, struct wl_list *actions, uint32_t resize_edges)
+actions_run(struct view *activator, struct server *server,
+ struct wl_list *actions, uint32_t resize_edges)
{
if (!actions) {
wlr_log(WLR_ERROR, "empty actions");
}
mousebind->pressed_in_context = false;
- action(NULL, server, &mousebind->actions, resize_edges);
+ actions_run(NULL, server, &mousebind->actions, resize_edges);
}
}
}
activated_any = true;
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
- action(view, server, &mousebind->actions, resize_edges);
+ actions_run(view, server, &mousebind->actions, resize_edges);
}
}
/*
}
activated_any = true;
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
- action(view, server, &mousebind->actions, resize_edges);
+ actions_run(view, server, &mousebind->actions, resize_edges);
}
}
return activated_any && activated_any_frame;
for (size_t i = 0; i < keybind->keysyms_len; i++) {
if (xkb_keysym_to_lower(sym) == keybind->keysyms[i]) {
wlr_keyboard_set_repeat_info(kb, 0, 0);
- action(NULL, server, &keybind->actions, 0);
+ actions_run(NULL, server, &keybind->actions, 0);
return true;
}
}
/* ..but it just opens a submenu */
return false;
}
- action(NULL, menu->server, &menu->selection.item->actions, 0);
+ actions_run(NULL, menu->server, &menu->selection.item->actions, 0);
menu_close(menu->server->menu_current);
menu->server->menu_current = NULL;
return true;