clients: Allow creating a "detached" menu
This will be used by the xdg_surface.show_menu_window implementation.
diff --git a/clients/window.h b/clients/window.h
index 1d0c4af..5247f19 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -286,6 +286,11 @@
typedef void (*menu_func_t)(void *data, struct input *input, int index);
+struct window *
+window_create_menu(struct display *display,
+ struct input *input, uint32_t time,
+ menu_func_t func, const char **entries, int count,
+ void *user_data);
void
window_show_menu(struct display *display,
struct input *input, uint32_t time, struct window *parent,