summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2022-08-08 22:42:09 +0200
committerGitHub <noreply@github.com>2022-08-08 22:42:09 +0200
commit5aed6f1bc7ad15d2f740e490339aaacd5bbe8568 (patch)
tree7ee3c51e87ad6d1e22640f9190b4996c60cca01c /src/debug/HyprCtl.cpp
parent6f137938da14a1b5b71cfdad51101d7a6f25320c (diff)
parent5cec6257e90eebd591977e90a97d3471ef738a26 (diff)
Merge pull request #499 from yavko/fix-active-window-json-bools
makes active windoe consistient with client json
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index c0d0463b..53e5bc32 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -169,23 +169,23 @@ R"#({
"id": %i,
"name": "%s"
},
- "floating": %i,
+ "floating": %s,
"monitor": %i,
"class": "%s",
"title": "%s",
"pid": %i,
- "xwayland": %i
+ "xwayland": %s
})#",
PWINDOW,
(int)PWINDOW->m_vRealPosition.vec().x, (int)PWINDOW->m_vRealPosition.vec().y,
(int)PWINDOW->m_vRealSize.vec().x, (int)PWINDOW->m_vRealSize.vec().y,
PWINDOW->m_iWorkspaceID, escapeJSONStrings(PWINDOW->m_iWorkspaceID == -1 ? "" : g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID)->m_szName).c_str(),
- (int)PWINDOW->m_bIsFloating,
+ ((int)w->m_bIsFloating == 1 ? "true" : "false"),
PWINDOW->m_iMonitorID,
escapeJSONStrings(g_pXWaylandManager->getAppIDClass(PWINDOW)).c_str(),
escapeJSONStrings(g_pXWaylandManager->getTitle(PWINDOW)).c_str(),
PWINDOW->getPID(),
- (int)PWINDOW->m_bIsX11
+ ((int)w->m_bIsX11 == 1 ? "true" : "false")
);
} else {
return getFormat("Window %x -> %s:\n\tat: %i,%i\n\tsize: %i,%i\n\tworkspace: %i (%s)\n\tfloating: %i\n\tmonitor: %i\n\tclass: %s\n\ttitle: %s\n\tpid: %i\n\txwayland: %i\n\n",