buf_add(&buffer, title);
current_item = item_create(menu, buffer.data, /*show arrow*/ false);
- current_item->id = xstrdup(menu->id);
current_item->client_list_view = view;
fill_item("name.action", "Focus");
fill_item("name.action", "Raise");
}
}
current_item = item_create(menu, _("Go there..."), /*show arrow*/ false);
- current_item->id = xstrdup(menu->id);
fill_item("name.action", "GoToDesktop");
fill_item("to.action", workspace->name);
}
* menu_close() and destroy_pipemenus() which we have to handle
* before/after action_run() respectively.
*/
- if (item->id && !strcmp(item->id, "client-list-combined-menu")
+ if (!strcmp(item->parent->id, "client-list-combined-menu")
&& item->client_list_view) {
actions_run(item->client_list_view, server, &item->actions, NULL);
} else {