From 4a0505979d799d99ab0949455ea67961c7216840 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 4 Apr 2024 22:47:56 +0200 Subject: [PATCH] macOS provides z-axis stacking for Dialogs see also d1b462c2131 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. --- gtk2_ardour/editor_export_audio.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_export_audio.cc b/gtk2_ardour/editor_export_audio.cc index 9ff669722a..533035e16a 100644 --- a/gtk2_ardour/editor_export_audio.cc +++ b/gtk2_ardour/editor_export_audio.cc @@ -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 (); }