From 86d27a736c8e654dd2c03cfa12511ebd3e40128b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 22 Feb 2016 14:03:55 -0500 Subject: better system for managing kbd focus after cmd-w closing a dialog. Key, Button and Focus In events in the editor+mixer windows cause the respective window to be noted as the window to which focus should return after a dialog is closed with cmd/ctrl-w --- gtk2_ardour/ardour_ui_mixer.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk2_ardour/ardour_ui_mixer.cc') diff --git a/gtk2_ardour/ardour_ui_mixer.cc b/gtk2_ardour/ardour_ui_mixer.cc index 56ecc057f0..f5a8bc2713 100644 --- a/gtk2_ardour/ardour_ui_mixer.cc +++ b/gtk2_ardour/ardour_ui_mixer.cc @@ -23,6 +23,8 @@ is to cut down on the nasty compile times for these classes. */ +#include "gtkmm2ext/keyboard.h" + #include "actions.h" #include "ardour_ui.h" #include "mixer_ui.h" @@ -46,6 +48,7 @@ ARDOUR_UI::create_mixer () } mixer->signal_window_state_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), false)); + mixer->signal_event().connect (sigc::bind (sigc::ptr_fun (&Gtkmm2ext::Keyboard::catch_user_event_for_pre_dialog_focus), mixer)); return 0; } -- cgit v1.2.3