mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge pull request #442 from xPMo/master
sway/mode: enable pango markup on supported modes
This commit is contained in:
commit
c6d7a779b8
@ -17,7 +17,11 @@ void Mode::onEvent(const struct Ipc::ipc_response& res) {
|
|||||||
std::lock_guard<std::mutex> lock(mutex_);
|
std::lock_guard<std::mutex> lock(mutex_);
|
||||||
auto payload = parser_.parse(res.payload);
|
auto payload = parser_.parse(res.payload);
|
||||||
if (payload["change"] != "default") {
|
if (payload["change"] != "default") {
|
||||||
|
if (payload["pango_markup"].asBool()) {
|
||||||
|
mode_ = payload["change"].asString();
|
||||||
|
} else {
|
||||||
mode_ = Glib::Markup::escape_text(payload["change"].asString());
|
mode_ = Glib::Markup::escape_text(payload["change"].asString());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
mode_.clear();
|
mode_.clear();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user