+static gpointer setup_func(xmlNodePtr node)
+{
+ xmlNodePtr n;
+ Options *o;
+
+ o = g_new0(Options, 1);
+ o->dir = BOTH;
+
+ if ((n = obt_parse_find_node(node, "direction"))) {
+ gchar *s = obt_parse_node_string(n);
+ if (!g_ascii_strcasecmp(s, "vertical") ||
+ !g_ascii_strcasecmp(s, "vert"))
+ o->dir = VERT;
+ else if (!g_ascii_strcasecmp(s, "horizontal") ||
+ !g_ascii_strcasecmp(s, "horz"))
+ o->dir = HORZ;
+ g_free(s);
+ }
+
+ return o;
+}
+
+/* Always return FALSE because its not interactive */
+static gboolean run_func_on(ObActionsData *data, gpointer options)
+{
+ Options *o = options;
+ if (data->client) {
+ actions_client_move(data, TRUE);
+ client_maximize(data->client, TRUE, o->dir);
+ actions_client_move(data, FALSE);
+ }
+ return FALSE;
+}
+