layers: remove last remnants of get<T> to read ints from json
[staging/windowmanager.git] / src / layers.cpp
index 0110f17..8f79451 100644 (file)
@@ -67,7 +67,7 @@ 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"]);
+         stl.main_surface = (*msi)["surface_id"];
       }
 
       // Check lookup