summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_window.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-05-02 10:10:05 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-05-02 10:10:05 -0400
commitd88999312a97a04548d2fc457d11a3303789c171 (patch)
tree9f6c67ce15bb684f19b4000a9d8687f9a09eb709 /gtk2_ardour/ardour_window.cc
parent88f752411876323d5966fad447d441b7613638f0 (diff)
force ArdourWindows to be TYPE_UTILITY so that they float "with" TYPE_DIALOG windows (at least on OS X - still to be tested on X Window
Diffstat (limited to 'gtk2_ardour/ardour_window.cc')
-rw-r--r--gtk2_ardour/ardour_window.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_window.cc b/gtk2_ardour/ardour_window.cc
index 616cfbcb66..6217946940 100644
--- a/gtk2_ardour/ardour_window.cc
+++ b/gtk2_ardour/ardour_window.cc
@@ -75,5 +75,15 @@ void
ArdourWindow::init ()
{
set_border_width (10);
+
+ /* ArdourWindows are not dialogs (they have no "OK" or "Close" button) but
+ they should be considered part of the same "window level" as a dialog. This
+ works on X11 and Quartz, in that:
+
+ (a) utility & dialog windows are considered to be part of the same level
+ (b) they will float above normal windows without any particular effort
+ */
+
+ set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
}