diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-11-01 18:53:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-01 18:53:36 +0000 |
| commit | 21e9313c100e005ec2a9a5100c29258a2885546b (patch) | |
| tree | dcda791982f3aa2b3e4939be67cdda11fd7023e3 /src/debug/HyprCtl.cpp | |
| parent | 7b32b4214d028a173c8192bddaa9e43503326080 (diff) | |
Core: various unsafe state improvements (#3713)
Fixes #3637
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index e7191ae1..b274b244 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -231,7 +231,7 @@ static std::string getWorkspaceData(CWorkspace* w, HyprCtl::eHyprCtlOutputFormat "lastwindowtitle": "{}" }})#", w->m_iID, escapeJSONStrings(w->m_szName), escapeJSONStrings(PMONITOR ? PMONITOR->szName : "?"), - escapeJSONStrings(PMONITOR ? std::to_string(PMONITOR->ID) : "undefined"), g_pCompositor->getWindowsOnWorkspace(w->m_iID), + escapeJSONStrings(PMONITOR ? std::to_string(PMONITOR->ID) : "null"), g_pCompositor->getWindowsOnWorkspace(w->m_iID), ((int)w->m_bHasFullscreenWindow == 1 ? "true" : "false"), (uintptr_t)PLASTW, PLASTW ? escapeJSONStrings(PLASTW->m_szTitle) : ""); } else { return std::format("workspace ID {} ({}) on monitor {}:\n\tmonitorID: {}\n\twindows: {}\n\thasfullscreen: {}\n\tlastwindow: 0x{:x}\n\tlastwindowtitle: {}\n\n", w->m_iID, |
