#include "client.h"
#include "focus.h"
+#include "menu.h"
#include "stacking.h"
#include "frame.h"
#include "framerender.h"
Action *a = g_new0(Action, 1);
a->func = func;
- /* deal with pointers */
- if (func == action_execute)
- a->data.execute.path = NULL;
-
return a;
}
/* deal with pointers */
if (a->func == action_execute || a->func == action_restart)
g_free(a->data.execute.path);
+ else if (a->func == action_showmenu)
+ g_free(a->data.showmenu.name);
g_free(a);
}
void action_showmenu(union ActionData *data)
{
- g_message(__FUNCTION__);
+ menu_show(data->showmenu.name, data->showmenu.x, data->showmenu.y,
+ data->showmenu.c);
}
static void popup_cycle(Client *c, gboolean hide)