app: debug_layers returns a representation of layers.json configuration
[staging/windowmanager.git] / src / app.cpp
index aa3f644..729c0a0 100644 (file)
@@ -331,7 +331,7 @@ binding_api::result_type binding_api::register_surface(uint32_t appid,
 
 binding_api::result_type binding_api::debug_layers() {
    logdebug("%s", __func__);
-   return Ok(to_json(this->app->controller->lprops));
+   return Ok(json_tokener_parse(this->app->layers.to_json().dump().c_str()));
 }
 
 binding_api::result_type binding_api::debug_surfaces() {