Skip to content

Commit

Permalink
ensure that when mixer is shown in its own tab, it has a default focu…
Browse files Browse the repository at this point in the history
…s widget, so that alt-m will always work
  • Loading branch information
pauldavisthefirst committed Feb 20, 2017
1 parent 9a45e0f commit 006a4c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gtk2_ardour/mixer_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,16 @@ Mixer_UI::use_own_window (bool and_fill_it)

Gtk::Window* win = Tabbable::use_own_window (and_fill_it);


if (win && new_window) {
win->set_name ("MixerWindow");
ARDOUR_UI::instance()->setup_toplevel_window (*win, _("Mixer"), this);
win->signal_event().connect (sigc::bind (sigc::ptr_fun (&Keyboard::catch_user_event_for_pre_dialog_focus), win));
win->set_data ("ardour-bindings", bindings);
update_title ();
if (!win->get_focus()) {
/* set focus widget to something, anything */
win->set_focus (scroller);
}
}

return win;
Expand Down

0 comments on commit 006a4c0

Please sign in to comment.