summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2016-06-22 14:50:13 -0700
committerLen Ovens <len@ovenwerks.net>2016-06-22 14:50:13 -0700
commitf3dd9eef8b72eb9c9390e758f443435adbbcb1a7 (patch)
tree14536f3ee57d9e80f99db0fb9c67541405674401 /libs
parent844bf700021bc9e41a6c27e1988fe4d520747844 (diff)
OSC: master/monitor forced to sort at end
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/osc/osc.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index 7aa19a4505..31953756c0 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -2581,12 +2581,6 @@ OSC::get_sorted_stripables(std::bitset<32> types)
if (types[4] && (s->presentation_info().flags() & PresentationInfo::VCA)) {
sorted.push_back (s);
} else
- if (types[5] && (s->presentation_info().flags() & PresentationInfo::MasterOut)) {
- sorted.push_back (s);
- } else
- if (types[6] && (s->presentation_info().flags() & PresentationInfo::MonitorOut)) {
- sorted.push_back (s);
- } else
if (types[8] && (s->presentation_info().flags() & PresentationInfo::Selected)) {
sorted.push_back (s);
} else
@@ -2596,6 +2590,13 @@ OSC::get_sorted_stripables(std::bitset<32> types)
}
}
sort (sorted.begin(), sorted.end(), StripableByPresentationOrder());
+ // Master/Monitor might be anywhere... we put them at the end - Sorry ;)
+ if (types[5]) {
+ sorted.push_back (session->master_out());
+ }
+ if (types[6]) {
+ sorted.push_back (session->monitor_out());
+ }
return sorted;
}