diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-03 10:37:01 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 04c862b9957ea86959bd533cb1ac497ddb52759d (patch) | |
tree | 54a1e9d7718f340605727a08552d080037f1cc2e /src/layers.cpp | |
parent | ccd8c4d8957c4a561ae1d2d9a53525fe2a4e4329 (diff) |
app/api: add demo_activate_surface() api_binding
* Added "main_surface" entry to layers.json.
* This surface is never made invisible by activate_surface().
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/layers.cpp')
-rw-r--r-- | src/layers.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layers.cpp b/src/layers.cpp index b5ce2ed..6eae48a 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -71,6 +71,11 @@ struct result<struct layer_map> to_layer_map(nlohmann::json const &j) { } } + auto msi = j.find("main_surface"); + if (msi != j.end()) { + stl.main_surface = get<int>((*msi)["surface_id"]); + } + // Check lookup auto jtests = j.value("tests", json()); |