summaryrefslogtreecommitdiff
path: root/gtk2_ardour/monitor_section.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-21 14:38:45 +0100
committerRobin Gareus <robin@gareus.org>2015-12-21 14:38:45 +0100
commitd5566921924a5edae953c24bb79cda2563da43d4 (patch)
tree88ba3ef2844de39e8f8dff7f3a62dacf7350f7b1 /gtk2_ardour/monitor_section.cc
parent0d9f15dd80dfe6d80ab0f241fcd9620f3045aba0 (diff)
allow to float detached monitor-section window
Diffstat (limited to 'gtk2_ardour/monitor_section.cc')
-rw-r--r--gtk2_ardour/monitor_section.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/monitor_section.cc b/gtk2_ardour/monitor_section.cc
index 6bab29bdfb..6f7caf99e6 100644
--- a/gtk2_ardour/monitor_section.cc
+++ b/gtk2_ardour/monitor_section.cc
@@ -455,8 +455,12 @@ MonitorSection::MonitorSection (Session* s)
_tearoff = new TearOff (hpacker);
- /* if torn off, make this a normal window */
- _tearoff->tearoff_window().set_type_hint (Gdk::WINDOW_TYPE_HINT_NORMAL);
+ if (!UIConfiguration::instance().get_floating_monitor_section()) {
+ /* if torn off, make this a normal window
+ * (default is WINDOW_TYPE_HINT_UTILITY in libs/gtkmm2ext/tearoff.cc)
+ */
+ _tearoff->tearoff_window().set_type_hint (Gdk::WINDOW_TYPE_HINT_NORMAL);
+ }
_tearoff->tearoff_window().set_title (X_("Monitor"));
_tearoff->tearoff_window().signal_key_press_event().connect (sigc::ptr_fun (forward_key_press), false);