summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authoryavko <yavornkolev@gmail.com>2022-08-05 15:23:38 -0700
committeryavko <yavornkolev@gmail.com>2022-08-05 15:23:38 -0700
commit59088decd020fc07eb383ff7587b59c989342254 (patch)
treedc21716967e9269e291d981ecab3f7482309ca80 /src/debug/HyprCtl.cpp
parentc77b571fa7fe6076ba6322f804f2c43091522fd0 (diff)
Change to json bools
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index f102606a..2d11df69 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -80,23 +80,23 @@ R"#({
"id": %i,
"name": "%s"
},
- "floating": %i,
+ "floating": %s,
"monitor": %i,
"class": "%s",
"title": "%s",
"pid": %i,
- "xwayland": %i
+ "xwayland": %s
},)#",
w.get(),
(int)w->m_vRealPosition.vec().x, (int)w->m_vRealPosition.vec().y,
(int)w->m_vRealSize.vec().x, (int)w->m_vRealSize.vec().y,
w->m_iWorkspaceID, escapeJSONStrings(w->m_iWorkspaceID == -1 ? "" : g_pCompositor->getWorkspaceByID(w->m_iWorkspaceID) ? g_pCompositor->getWorkspaceByID(w->m_iWorkspaceID)->m_szName : std::string("Invalid workspace " + std::to_string(w->m_iWorkspaceID))).c_str(),
- (int)w->m_bIsFloating,
+ ((int)w->m_bIsFloating == 1 ? "true" : "false"),
w->m_iMonitorID,
escapeJSONStrings(g_pXWaylandManager->getAppIDClass(w.get())).c_str(),
escapeJSONStrings(g_pXWaylandManager->getTitle(w.get())).c_str(),
w->getPID(),
- (int)w->m_bIsX11
+ ((int)w->m_bIsX11 == 1 ? "true" : "false")
);
}
}
@@ -129,13 +129,13 @@ R"#({
"name": "%s",
"monitor": "%s",
"windows": %i,
- "hasfullscreen": %i
+ "hasfullscreen": %s
},)#",
w->m_iID,
escapeJSONStrings(w->m_szName).c_str(),
escapeJSONStrings(g_pCompositor->getMonitorFromID(w->m_iMonitorID)->szName).c_str(),
g_pCompositor->getWindowsOnWorkspace(w->m_iID),
- (int)w->m_bHasFullscreenWindow
+ ((int)w->m_bHasFullscreenWindow == 1 ? "true" : "false")
);
}