main/app: started to move things to app
[staging/windowmanager.git] / src / main.cpp
index 4593f22..5c9df33 100644 (file)
@@ -1,6 +1,7 @@
 #include "json_helper.hpp"
 #include "util.hpp"
 #include "wayland.hpp"
+#include "app.hpp"
 
 #include <algorithm>
 #include <json.h>
@@ -211,6 +212,12 @@ void debug_status(struct afb_req req) {
    // Quick and dirty, dump current surfaces and layers
    AFB_REQ_DEBUG(req, "status");
 
+   // auto r = g_afb_instance->app.api.debug_status();
+   // if (r.is_err()) {
+   //    afb_req_fail(req, "failed", r.e.value());
+   //    return;
+   // }
+
    auto o = json_object_new_object();
    json_object_object_add(o, "surfaces",
                           to_json(g_afb_instance->controller->sprops));