diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-26 23:18:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-26 23:18:24 +0000 |
commit | 7856f14c44bf73f08bf37ad57271d691b8a410a3 (patch) | |
tree | 377be7b0e102d7fffca19d0137af6cbbe9fd0de7 /gtk2_ardour/editor_mouse.cc | |
parent | 2b4d07e3042683ad3c2bd37f216aa724c2ffdc15 (diff) |
when a context click event occurs in the editor, store the event so we can use it to determine position later during its handling, if necessary
git-svn-id: svn://localhost/ardour2/branches/3.0@11081 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 3d61089d9a..a7c3946ff3 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -1300,6 +1300,8 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT if (Keyboard::is_context_menu_event (&event->button)) { + context_click_event = *event; + if (!_drags->active ()) { /* no matter which button pops up the context menu, tell the menu |