From 12a251c3a49b3a914e7285569e05231a5717de3a Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 20 May 2019 20:51:19 +0200 Subject: [PATCH] fix(mode): escape text --- src/modules/sway/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sway/mode.cpp b/src/modules/sway/mode.cpp index e8746a2..6e93c4d 100644 --- a/src/modules/sway/mode.cpp +++ b/src/modules/sway/mode.cpp @@ -19,7 +19,7 @@ void Mode::onEvent(const struct Ipc::ipc_response& res) { try { auto payload = parser_.parse(res.payload); if (payload["change"] != "default") { - mode_ = payload["change"].asString(); + mode_ = Glib::Markup::escape_text(payload["change"].asString()); } else { mode_.clear(); }