From 8d6dd9ecc0a4b9ea11d5273c62ed134962b5b224 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 7 Jun 2013 11:58:57 -0400 Subject: some clarifying comments on WindowManager::set_transient_for --- gtk2_ardour/window_manager.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/window_manager.cc b/gtk2_ardour/window_manager.cc index 986e6ade3a..2a195ac90f 100644 --- a/gtk2_ardour/window_manager.cc +++ b/gtk2_ardour/window_manager.cc @@ -130,12 +130,19 @@ Manager::set_session (ARDOUR::Session* s) void Manager::set_transient_for (Gtk::Window* parent) { + /* OS X has a richer concept of window layering than X does (or + * certainly, than any accepted conventions on X), and so the use of + * Manager::set_transient_for() is not necessary on that platform. + * + * On OS X this is mostly taken care of by using the window type rather + * than explicit 1:1 transient-for relationships. + */ + #ifndef __APPLE__ if (parent) { for (Windows::const_iterator i = _windows.begin(); i != _windows.end(); ++i) { Gtk::Window* win = (*i)->get(); if (win) { - std::cerr << "marked " << win->get_title() << " as transient of " << parent->get_title() << std::endl; win->set_transient_for (*parent); } } -- cgit v1.2.3