1 #include "openbox/actions.h"
2 #include "openbox/event.h"
3 #include "openbox/client.h"
5 static gpointer setup_func(xmlNodePtr node);
6 static void free_func(gpointer acts);
7 static gboolean run_func(ObActionsData *data, gpointer options);
9 void action_allclients_startup(void)
11 actions_register("AllClients", setup_func, free_func, run_func, NULL, NULL);
14 static gpointer setup_func(xmlNodePtr node)
19 n = obt_parse_find_node(node, "action");
21 ObActionsAct *action = actions_parse(n);
22 if (action) acts = g_slist_prepend(acts, action);
23 n = obt_parse_find_node(n->next, "action");
29 static void free_func(gpointer acts)
34 actions_act_unref(a->data);
35 a = g_slist_delete_link(a, a);
39 /* Always return FALSE because its not interactive */
40 static gboolean run_func(ObActionsData *data, gpointer acts)
46 for (it = client_list; it; it = g_list_next(it)) {
47 ObClient *c = it->data;
48 if (actions_run_acts(a, data->uact, data->state,
49 data->x, data->y, data->button,