summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-08 18:47:39 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-08 18:47:39 +0200
commit0eb5ecafb9cb8dcd4242abd03fe69f51b7930505 (patch)
tree39f5e7e479e77326daac2b885237a42b4b3b4123 /src/debug/HyprCtl.cpp
parent49a55f136e01c7fed071687becacea639226127a (diff)
consistent output of window addresses
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 63037069..d48ff19f 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -133,7 +133,7 @@ R"#({
"monitor": "%s",
"windows": %i,
"hasfullscreen": %s,
- "lastwindow": "%x",
+ "lastwindow": "0x%x",
"lastwindowtitle": "%s"
},)#",
w->m_iID,
@@ -153,7 +153,7 @@ R"#({
} else {
for (auto& w : g_pCompositor->m_vWorkspaces) {
const auto PLASTW = w->getLastFocusedWindow();
- result += getFormat("workspace ID %i (%s) on monitor %s:\n\twindows: %i\n\thasfullscreen: %i\n\tlastwindow: %x\n\tlastwindowtitle: %s\n\n",
+ result += getFormat("workspace ID %i (%s) on monitor %s:\n\twindows: %i\n\thasfullscreen: %i\n\tlastwindow: 0x%x\n\tlastwindowtitle: %s\n\n",
w->m_iID, w->m_szName.c_str(), g_pCompositor->getMonitorFromID(w->m_iMonitorID)->szName.c_str(), g_pCompositor->getWindowsOnWorkspace(w->m_iID), (int)w->m_bHasFullscreenWindow, PLASTW, PLASTW ? PLASTW->m_szTitle.c_str() : "");
}
}