summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-06 21:57:15 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-06 21:57:15 +0200
commita545992891668d9872bed04b76d3b35b32dc0796 (patch)
treecf30fd26853ec984b135f4eb27bd198fbde2b8ca /src/debug/HyprCtl.cpp
parentf5936f97d6e45f8a17003aea8d8b6514eb666daf (diff)
fixed hyprctl layers crash
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index ad72c68e..9a30c54c 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -58,7 +58,7 @@ std::string layersRequest() {
std::string result = "";
for (auto& mon : g_pCompositor->m_vMonitors) {
- result += getFormat("Monitor %s:\n");
+ result += getFormat("Monitor %s:\n", mon->szName.c_str());
int layerLevel = 0;
for (auto& level : mon->m_aLayerSurfaceLists) {
result += getFormat("\tLayer level %i:\n", layerLevel);