diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-07-28 14:40:27 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 626b0fc7a92da537f4914afcd3ff390f855785c4 (patch) | |
tree | d3790796c80d01c857b2e1e038c82416bf9c51be /src/app.cpp | |
parent | 979f3c80a66129cadc9260fc52eb5eab2fb73622 (diff) |
layers: provide a layers-only vector
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/app.cpp')
-rw-r--r-- | src/app.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/app.cpp b/src/app.cpp index 84ebfba..96394c3 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -192,19 +192,16 @@ int App::init_layout() { // Quick and dirty setup of layers // XXX: This likely needs to be sorted by order (note, we don't (yet?) // do any zorder arrangement). - std::vector<unsigned> ls; - ls.reserve(this->surface2layer.mapping.size()); for (auto const &i: this->surface2layer.mapping) { c->layer_create(i.layer_id, o->width, o->height); auto &l = layers[i.layer_id]; l->set_destination_rectangle(0, 0, o->width, o->height); l->set_visibility(1); logdebug("Setting up layer %s (%d) for surfaces %d-%d", i.name.c_str(), i.layer_id, i.id_min, i.id_max); - ls.push_back(unsigned(i.layer_id)); } - // Add layers to screen - s->set_render_order(ls); + // Add layers to screen (XXX: are they sorted correctly?) + s->set_render_order(this->surface2layer.layers); c->commit_changes(); |