summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_mixer.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-02-22 14:03:55 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-22 14:03:55 -0500
commit86d27a736c8e654dd2c03cfa12511ebd3e40128b (patch)
tree85ed725adde8fd5ef763cfd3b8562d9daa9eb3b9 /gtk2_ardour/ardour_ui_mixer.cc
parent60c4b30b7ed37ae7fff54112982e6118c0ffab77 (diff)
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
Diffstat (limited to 'gtk2_ardour/ardour_ui_mixer.cc')
-rw-r--r--gtk2_ardour/ardour_ui_mixer.cc3
1 files changed, 3 insertions, 0 deletions
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;
}