1 #include "openbox/actions.h"
2 #include "openbox/client.h"
4 static gboolean run_func(ObActionsData *data, gpointer options);
5 static gpointer setup_func(xmlNodePtr node);
7 void action_iconify_startup(void)
9 actions_register("Iconify",
15 static gpointer setup_func(xmlNodePtr node)
19 if ((n = obt_xml_find_node(node, "de")))
20 return GINT_TO_POINTER(obt_xml_node_bool(n));
22 return GINT_TO_POINTER(0);
25 /* Always return FALSE because its not interactive */
26 static gboolean run_func(ObActionsData *data, gpointer options)
28 if (!actions_client_locked(data)) {
29 actions_client_move(data, TRUE);
30 client_iconify(data->client, !options, FALSE, FALSE);
31 actions_client_move(data, FALSE);