From 2ba7cb2414a5cf893a64992756fcd283872ae956 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 5 Sep 2022 21:32:37 +0200 Subject: [PATCH] escape json strings in workspaces lastwindow title --- src/debug/HyprCtl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 1df8e443..1b6b07b2 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -142,7 +142,7 @@ R"#({ g_pCompositor->getWindowsOnWorkspace(w->m_iID), ((int)w->m_bHasFullscreenWindow == 1 ? "true" : "false"), PLASTW, - PLASTW ? PLASTW->m_szTitle.c_str() : "" + PLASTW ? escapeJSONStrings(PLASTW->m_szTitle).c_str() : "" ); }