summaryrefslogtreecommitdiff
path: root/clients/window.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-03-13 11:57:31 -0400
committerKristian Høgsberg <krh@bitplanet.net>2014-05-23 09:37:19 -0700
commitde8bd50d356dccd4a4edc3104bd6174f727551d4 (patch)
tree04d6ffc15ec3fd6caa4b013ac1a89eb72cd9da4a /clients/window.h
parentca85dc6b92cf710fac6db299535d385ecc369896 (diff)
downloadweston-de8bd50d356dccd4a4edc3104bd6174f727551d4.tar.gz
clients: Allow creating a "detached" menu
This will be used by the xdg_surface.show_menu_window implementation.
Diffstat (limited to 'clients/window.h')
-rw-r--r--clients/window.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clients/window.h b/clients/window.h
index 1d0c4af7..5247f19c 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -286,6 +286,11 @@ window_has_focus(struct window *window);
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,