}
void action_run_list(GSList *acts, ObClient *c, ObFrameContext context,
- guint state, gint button, gint x, gint y, Time time,
+ guint state, guint button, gint x, gint y, Time time,
gboolean cancel, gboolean done)
{
GSList *it;
void action_showmenu(union ActionData *data)
{
if (data->showmenu.name) {
- gint x, y;
- ObClient *c = data->showmenu.any.c;
- if (data->any.button == -1 && c) {
- x = c->frame->area.x + c->frame->size.left;
- y = c->frame->area.y + c->frame->size.top;
- } else {
- x = data->any.x;
- y = data->any.y;
- }
- menu_show(data->showmenu.name, x, y, c);
+ menu_show(data->showmenu.name, data->any.x, data->any.y,
+ data->showmenu.any.c);
}
}