1 #include "openbox/action.h"
2 #include "openbox/action_list_run.h"
3 #include "openbox/client.h"
4 #include "openbox/client_set.h"
6 static gboolean run_func(const ObClientSet *set,
7 const ObActionListRun *data, gpointer options);
9 void action_kill_startup(void)
11 action_register("Kill", OB_ACTION_DEFAULT_FILTER_SINGLE,
12 NULL, NULL, run_func);
15 static gboolean each_run(ObClient *c, const ObActionListRun *data,
22 /* Always return FALSE because its not interactive */
23 static gboolean run_func(const ObClientSet *set,
24 const ObActionListRun *data, gpointer options)
26 if (!client_set_is_empty(set)) {
27 action_client_move(data, TRUE);
28 client_set_run(set, data, each_run, options);
29 action_client_move(data, FALSE);