static void show_menu(struct resizor *resizor, struct input *input, uint32_t time) { int32_t x, y; static const char *entries[] = { "Roy", "Pris", "Leon", "Zhora" }; input_get_position(input, &x, &y); window_show_menu(resizor->display, input, time, resizor->window, x - 10, y - 10, menu_func, entries, 4); }
static void show_menu(struct panel *panel, struct input *input, uint32_t time) { int32_t x, y; static const char *entries[] = { "Roy", "Pris", "Leon", "Zhora" }; input_get_position(input, &x, &y); window_show_menu(window_get_display(panel->window), input, time, panel->window, x - 10, y - 10, menu_func, entries, 4); }
static void show_popup(struct stacking *stacking, struct input *input, uint32_t time, struct window *window) { int32_t x, y; static const char *entries[] = { "Test Entry", "Another Test Entry", }; input_get_position(input, &x, &y); window_show_menu(stacking->display, input, time, window, x, y, show_popup_cb, entries, ARRAY_LENGTH(entries)); }