use standard method to identify context click on patch change

This commit is contained in:
Paul Davis 2016-05-22 10:19:57 -04:00
parent e3c4f5fa98
commit a9b919e877

View file

@ -183,7 +183,7 @@ PatchChange::event_handler (GdkEvent* ev)
} }
} }
if (ev->button.button == 3) { if (Gtkmm2ext::Keyboard::is_context_menu_event (&ev->button)) {
if (!_popup_initialized) { if (!_popup_initialized) {
initialize_popup_menus(); initialize_popup_menus();
_popup_initialized = true; _popup_initialized = true;