+/* Always return FALSE because its not interactive */
+static gboolean run_func_toggle(ObActionsData *data, gpointer options)
+{
+ Options *o = options;
+ if (data->client) {
+ gboolean toggle;
+ actions_client_move(data, TRUE);
+ toggle = ((o->dir == HORZ && !data->client->max_horz) ||
+ (o->dir == VERT && !data->client->max_vert) ||
+ (o->dir == BOTH &&
+ !(data->client->max_horz && data->client->max_vert)));
+ client_maximize(data->client, toggle, o->dir);
+ actions_client_move(data, FALSE);
+ }