macOS provides z-axis stacking for Dialogs

see also d1b462c213 and Manager::set_transient_for.

This fixes a bug on macOS: detach Editor, re-attach Editor.
After that `own_window()` is true. Showing the LAN dialog
showed the editor's hidden Window as its parent.
This commit is contained in:
Robin Gareus 2024-04-04 22:47:56 +02:00
parent 2e991b0067
commit 4a0505979d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 1 deletions

View File

@ -184,10 +184,11 @@ Editor::measure_master_loudness (samplepos_t start, samplepos_t end, bool is_ran
ARDOUR::TimelineRange ar (timepos_t (start), timepos_t (end), 0);
LoudnessDialog ld (_session, ar, is_range_selection);
#ifndef __APPLE__
if (own_window ()) {
ld.set_transient_for (*own_window ());
}
#endif
ld.run ();
}