Revert "consistent use of context-menu popups"

This reverts commit b3722f7063.

In some cases ardour shows context-menu on right-mouse-button
release. In this case selecting a menu-entry should happen
with the left-mouse button (or any button?!)

Using ev->button is only correct if the menu is temporary and only
visible while the button is held, button release then activates the
menu-item.

This needs further work, in some cases allowing any button (0) to work
makes sense and overall consistency needs to be improved.
Different places use different strategies for context-menus which
don't always match the button used in the event-handler.

This is a hotfix (to make TAV context menus work again with left-click)
This commit is contained in:
Robin Gareus 2017-03-24 14:36:17 +01:00
parent 55b8b44889
commit 962e7a214a
13 changed files with 28 additions and 28 deletions

View file

@ -1778,7 +1778,7 @@ MixerStrip::name_button_button_press (GdkEventButton* ev)
Gtkmm2ext::anchored_menu_popup(route_ops_menu, &name_button, "",
1, ev->time);
} else {
route_ops_menu->popup (ev->button, ev->time);
route_ops_menu->popup (3, ev->time);
}
return true;
@ -1790,10 +1790,10 @@ MixerStrip::name_button_button_press (GdkEventButton* ev)
gboolean
MixerStrip::number_button_button_press (GdkEventButton* ev)
{
if (ev->button == 3) {
if ( ev->button == 3 ) {
list_route_operations ();
route_ops_menu->popup (ev->button, ev->time);
route_ops_menu->popup (1, ev->time);
return true;
}