From ec65e351acea329de1d09b8ce518a023001dfdab Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 4 Sep 2015 11:49:56 -0400 Subject: ensure that all callers of ARDOUR_UI_UTILS::relay_key_press() provide a window --- gtk2_ardour/plugin_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/plugin_ui.cc') diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 833055eff7..87c0202836 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -369,12 +369,12 @@ PluginUIWindow::on_key_press_event (GdkEventKey* event) if (_pluginui) { _pluginui->grab_focus(); if (_pluginui->non_gtk_gui()) { - /* pass editor window as the window for the event + /* pass main window as the window for the event to be handled in, not this one, because there are no widgets in this window that we want to have key focus. */ - return relay_key_press (event, 0); + return relay_key_press (event, &ARDOUR_UI::instance()->main_window()); } else { return relay_key_press (event, this); } -- cgit v1.2.3