From 7af1c6a9c3a57f3ded34fad3f9f4a30fe377a65e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 25 Jun 2003 18:43:42 +0000 Subject: menus grab the keyboard and pointer, thus making only one menu visible at a time, and making them act like gtk menus and * menus do, where you can click and drag and release to select something as well as click-release to elave it open while you search around the menu --- openbox/menu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbox/menu.h') diff --git a/openbox/menu.h b/openbox/menu.h index 6cb76a5e..ea5d7454 100644 --- a/openbox/menu.h +++ b/openbox/menu.h @@ -16,6 +16,7 @@ typedef void(*menu_controller_mouseover)(struct MenuEntry *self, gboolean enter); extern GHashTable *menu_hash; +extern GSList *menu_visible; typedef struct Menu { ObWindow obwin; @@ -131,6 +132,7 @@ void menu_entry_set_submenu(MenuEntry *entry, Menu *submenu); void menu_add_entry(Menu *menu, MenuEntry *entry); MenuEntry *menu_find_entry(Menu *menu, Window win); +MenuEntry *menu_find_entry_by_pos(Menu *menu, int x, int y); void menu_entry_render(MenuEntry *self); -- cgit v1.2.3