From 9f11765707364f69bdbf04b2f2404d33990cc9a2 Mon Sep 17 00:00:00 2001 From: Yavor Kolev Date: Thu, 4 Aug 2022 16:25:56 -0700 Subject: [PATCH] Change monitor active to json bool --- src/debug/HyprCtl.cpp | 6 +++--- 1 file 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 +}