diff options
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()); |