fix(window): escape window name

pull/108/head
Alexis 2018-11-25 15:21:00 +01:00
parent 952d877652
commit 391a7de94a
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ void waybar::modules::sway::Window::worker()
auto parsed = parser_.parse(res.payload); auto parsed = parser_.parse(res.payload);
if ((parsed["change"] == "focus" || parsed["change"] == "title") if ((parsed["change"] == "focus" || parsed["change"] == "title")
&& parsed["container"]["focused"].asBool()) { && parsed["container"]["focused"].asBool()) {
window_ = parsed["container"]["name"].asString(); window_ = Glib::Markup::escape_text(parsed["container"]["name"].asString());
windowId_ = parsed["container"]["id"].asInt(); windowId_ = parsed["container"]["id"].asInt();
dp.emit(); dp.emit();
} else if ((parsed["change"] == "close" } else if ((parsed["change"] == "close"