From 391a7de94a088d4445abfd21a72177126a517f14 Mon Sep 17 00:00:00 2001 From: Alexis Date: Sun, 25 Nov 2018 15:21:00 +0100 Subject: [PATCH] fix(window): escape window name --- src/modules/sway/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sway/window.cpp b/src/modules/sway/window.cpp index fb6132a2..7fc146c7 100644 --- a/src/modules/sway/window.cpp +++ b/src/modules/sway/window.cpp @@ -23,7 +23,7 @@ void waybar::modules::sway::Window::worker() auto parsed = parser_.parse(res.payload); if ((parsed["change"] == "focus" || parsed["change"] == "title") && parsed["container"]["focused"].asBool()) { - window_ = parsed["container"]["name"].asString(); + window_ = Glib::Markup::escape_text(parsed["container"]["name"].asString()); windowId_ = parsed["container"]["id"].asInt(); dp.emit(); } else if ((parsed["change"] == "close"