diff options
author | corvid <corvid@lavabit.com> | 2011-01-22 07:22:24 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-01-22 07:22:24 +0000 |
commit | 8db75fab08c074838b303d5009d127020a8605c1 (patch) | |
tree | ee814990d1c8c5c5ba63b8c6cd9088281d4e7c9c | |
parent | 1b8aa853b23f46886f7172054f2118b2f4ee343a (diff) |
better menu positioning
-rw-r--r-- | src/menu.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/menu.cc b/src/menu.cc index 036484ac..f63e04b8 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -573,6 +573,8 @@ void a_Menu_history_popup(BrowserWindow *bw, int direction) int i, n; popup_bw = bw; + popup_x = Fl::event_x(); + popup_y = Fl::event_y(); history_direction = direction; // TODO: hook popdown event with delete or similar. @@ -665,7 +667,7 @@ void a_Menu_tools_popup(BrowserWindow *bw, void *v_wid) if (prefs.load_images) pm[2].set(); - item = pm->popup(wid->x(), wid->y()); + item = pm->popup(wid->x(), wid->y() + wid->h()); if (item) ((Fl_Widget *)item)->do_callback(); } |