summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4593f22..5c9df33 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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));