13
0

keep meterbridge on top of editor - see #6386

This commit is contained in:
Robin Gareus 2015-06-25 20:23:34 +02:00
parent 0613a02e10
commit 0cd1db76f0
2 changed files with 5 additions and 1 deletions

View File

@ -402,6 +402,10 @@ ARDOUR_UI::toggle_meterbridge ()
if (tact->get_active()) {
meterbridge->show_window ();
meterbridge->present ();
if (editor) {
meterbridge->set_transient_for (*editor);
}
} else {
meterbridge->hide_window (NULL);
}

View File

@ -111,7 +111,6 @@ Meterbridge::Meterbridge ()
assert(max_height % 16 == 0);
set_geometry_hints(*((Gtk::Window*) this), geom, Gdk::HINT_MIN_SIZE | Gdk::HINT_MAX_SIZE | Gdk::HINT_RESIZE_INC);
set_keep_above (true);
set_border_width (0);
metrics_vpacker_left.pack_start (metrics_left, true, true);
@ -439,6 +438,7 @@ Meterbridge::set_session (Session* s)
if (_visible) {
show_window();
present ();
ActionManager::check_toggleaction ("<Actions>/Common/toggle-meterbridge");
}
start_updating ();