mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(window): escape window name
This commit is contained in:
parent
952d877652
commit
391a7de94a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user