diff options
author | vaxerski <[email protected]> | 2023-01-09 21:26:07 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-01-09 21:26:07 +0100 |
commit | 989ee6473fa3aa8fc050dece6f3019729d417176 (patch) | |
tree | 3c6bc6173395408565b345109c1bf185b52de403 | |
parent | a572321f611d256f746366fbf16d36ed6a7de3e6 (diff) | |
download | Hyprland-989ee6473fa3aa8fc050dece6f3019729d417176.tar.gz Hyprland-989ee6473fa3aa8fc050dece6f3019729d417176.zip |
describe layers in hyprctl layers
-rw-r--r-- | src/debug/HyprCtl.cpp | 5 | ||||
-rw-r--r-- | src/main.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 4d51a796..f47c44f4 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -283,9 +283,10 @@ std::string layersRequest(HyprCtl::eHyprCtlOutputFormat format) { } else { for (auto& mon : g_pCompositor->m_vMonitors) { result += getFormat("Monitor %s:\n", mon->szName.c_str()); - int layerLevel = 0; + int layerLevel = 0; + static const std::array<std::string, 4> levelNames = {"background", "bottom", "top", "overlay"}; for (auto& level : mon->m_aLayerSurfaceLists) { - result += getFormat("\tLayer level %i:\n", layerLevel); + result += getFormat("\tLayer level %i (%s):\n", layerLevel, levelNames[layerLevel].c_str()); for (auto& layer : level) { result += getFormat("\t\tLayer %x: xywh: %i %i %i %i, namespace: %s\n", layer.get(), layer->geometry.x, layer->geometry.y, layer->geometry.width, diff --git a/src/main.cpp b/src/main.cpp index 7d1353ba..7705f613 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -72,7 +72,7 @@ int main(int argc, char** argv) { #ifdef USES_SYSTEMD // tell systemd it destroy bound/related units if (sd_booted() > 0) - sd_notify(0, "STOPPING=1"); + sd_notify(0, "STOPPING=1"); #endif wl_display_destroy_clients(g_pCompositor->m_sWLDisplay); |