diff options
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/riscos/window.c b/riscos/window.c index 9f0c7dcf6..a1e9ff8bc 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1064,10 +1064,17 @@ void ro_gui_toolbar_click(struct gui_window *g, wimp_pointer *pointer) { char url[80]; - /* Reject Menu clicks + /* Store the toolbar */ - if (pointer->buttons == wimp_CLICK_MENU) + current_toolbar = g->toolbar; + + /* Handle Menu clicks + */ + if (pointer->buttons == wimp_CLICK_MENU) { + ro_gui_create_menu(toolbar_menu, pointer->pos.x, + pointer->pos.y, g); return; + } /* Handle the buttons appropriately */ |