diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-30 16:51:57 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-04 16:54:01 +0200 |
commit | 45b2e667e2e0f0791b911dcfd8afa843be58e311 (patch) | |
tree | 522e4020426d6293dc5b607b09c0fb044b81065a | |
parent | 1191112d543676da171e38daf33909eb4f30aff3 (diff) |
app: workaround for visibility setting; use system()
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r-- | src/app.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/app.cpp b/src/app.cpp index b3e8587..ff0c3f0 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -355,10 +355,16 @@ char const *App::activate_surface(uint32_t surface_id) { auto set_vis = [&s, this](int id, int vis) { using namespace std::chrono_literals; - std::this_thread::sleep_for(100ms); - s->set_visibility(vis); - this->controller->commit_changes(); - this->display->roundtrip(); + std::this_thread::sleep_for(200ms); + char *buf; + asprintf(&buf, "LayerManagerControl set surface %d visibility %d", id, vis); + //system("LayerManagerControl get scene"); + //system("sleep 0.1"); + system(buf); + + //s->set_visibility(vis); + //this->controller->commit_changes(); + //this->display->roundtrip(); }; set_vis(s->id, 0); set_vis(s->id, 1); |