1 #include "openbox/actions.h"
2 #include "openbox/focus.h"
8 static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
9 static void free_func(gpointer options);
10 static gboolean run_func(ObActionsData *data, gpointer options);
12 void action_unfocus_startup()
14 actions_register("Unfocus",
21 static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
26 o = g_new0(Options, 1);
29 if ((n = parse_find_node("tobottom", node)))
30 o->tobottom = parse_bool(doc, n);
34 static void free_func(gpointer options)
41 /* Always return FALSE because its not interactive */
42 static gboolean run_func(ObActionsData *data, gpointer options)
46 if (data->client && data->client == focus_client) {
48 focus_order_to_bottom(data->client);
49 focus_fallback(FALSE, FALSE, TRUE);