diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-07-10 10:44:29 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 0c673801b78c98fe116b4d14bf37fb18f8b749dc (patch) | |
tree | 2600e18722fa4e0694ed33afbadf0c0b83640ebf /src/main.cpp | |
parent | 8c587d6defaf73c1ddbe50d88f6fdd7360b63507 (diff) |
Track surface/layer properties with one struct
As both share the exact same properties this makes sense, we now can
write code once and work on both layer and surface properties. This
however is only relevant in the wayland "level" of things, as in WM
semantics layers are always fullscreen.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index ba0ff4e..965599d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -211,20 +211,20 @@ void debug_status(struct afb_req req) { auto o = json_object_new_object(); json_object_object_add(o, "surfaces", - to_json(g_wayland->controller->surfaces)); - json_object_object_add(o, "layers", to_json(g_wayland->controller->layers)); - json_object_object_add(o, "screens", - to_json(g_wayland->controller->screens)); + to_json(g_wayland->controller->sprops)); + json_object_object_add(o, "layers", to_json(g_wayland->controller->lprops)); +// json_object_object_add(o, "screens", +// to_json(g_wayland->controller->screens)); afb_req_success(req, o, "status"); } void debug_surfaces(afb_req req) { - afb_req_success(req, to_json(g_wayland->controller->surfaces), "surfaces"); + afb_req_success(req, to_json(g_wayland->controller->sprops), "surfaces"); } void debug_layers(afb_req req) { - afb_req_success(req, to_json(g_wayland->controller->layers), "layers"); + afb_req_success(req, to_json(g_wayland->controller->lprops), "layers"); } // Dummy register_surface implementation |