diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 14:03:55 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 14:03:55 -0500 |
commit | 86d27a736c8e654dd2c03cfa12511ebd3e40128b (patch) | |
tree | 85ed725adde8fd5ef763cfd3b8562d9daa9eb3b9 /gtk2_ardour/ardour_ui_ed.cc | |
parent | 60c4b30b7ed37ae7fff54112982e6118c0ffab77 (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_ed.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_ed.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index 06995f75d7..8329ea35d2 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -87,6 +87,7 @@ ARDOUR_UI::create_editor () editor->Realized.connect (sigc::mem_fun (*this, &ARDOUR_UI::editor_realized)); editor->signal_window_state_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), true)); + editor->signal_event().connect (sigc::bind (sigc::ptr_fun (&Keyboard::catch_user_event_for_pre_dialog_focus), editor)); return 0; } |