Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
App/layers: deactivate surfaces on layers above.
[staging/windowmanager.git]
/
src
/
layers.cpp
diff --git
a/src/layers.cpp
b/src/layers.cpp
index
d0a769a
..
a0665b7
100644
(file)
--- a/
src/layers.cpp
+++ b/
src/layers.cpp
@@
-87,7
+87,8
@@
struct result<struct layer_map> to_layer_map(nlohmann::json const &j) {
return unsigned(k.layer_id);
});
- // XXX need to sort layers?
+ std::sort(stl.layers.begin(), stl.layers.end());
+
for (auto i : stl.mapping) {
if (i.name.empty()) {
return Err<struct layer_map>("Found mapping w/o name");