summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2022-08-05 23:54:33 +0200
committerGitHub <noreply@github.com>2022-08-05 23:54:33 +0200
commitc77b571fa7fe6076ba6322f804f2c43091522fd0 (patch)
tree667fe8b5105059e60838c1f3c946f6fd01a3aa27 /src/debug/HyprCtl.cpp
parent49f5ae2ef372d6eeb0f9fc24a5fae7ab7e24a2a0 (diff)
parent9f11765707364f69bdbf04b2f2404d33990cc9a2 (diff)
Merge pull request #474 from yavko/patch-1
Change monitor active to json bool
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 24bdf14d..f102606a 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -35,7 +35,7 @@ R"#({
"reserved": [%i, %i, %i, %i],
"scale": %.2f,
"transform": %i,
- "active": "%s"
+ "active": %s
},)#",
m->ID,
escapeJSONStrings(m->szName).c_str(),
@@ -46,7 +46,7 @@ R"#({
(int)m->vecReservedTopLeft.x, (int)m->vecReservedTopLeft.y, (int)m->vecReservedBottomRight.x, (int)m->vecReservedBottomRight.y,
m->scale,
(int)m->transform,
- (m.get() == g_pCompositor->m_pLastMonitor ? "yes" : "no")
+ (m.get() == g_pCompositor->m_pLastMonitor ? "true" : "false")
);
}
@@ -667,4 +667,4 @@ void HyprCtl::startHyprCtlSocket() {
close(SOCKET);
}).detach();
-} \ No newline at end of file
+}