From 5f2dd99e6d766272a139f7ed9c9fc0a164ad7f64 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Mon, 29 Aug 2022 16:22:08 +1000 Subject: [PATCH] #1591 river escape window and mode --- src/modules/river/mode.cpp | 2 +- src/modules/river/window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/river/mode.cpp b/src/modules/river/mode.cpp index bb106c5..4a51c83 100644 --- a/src/modules/river/mode.cpp +++ b/src/modules/river/mode.cpp @@ -103,7 +103,7 @@ void Mode::handle_mode(const char *mode) { } label_.get_style_context()->add_class(mode); - label_.set_markup(fmt::format(format_, mode)); + label_.set_markup(fmt::format(format_, Glib::Markup::escape_text(mode).raw())); label_.show(); } diff --git a/src/modules/river/window.cpp b/src/modules/river/window.cpp index 3c41785..d0f492f 100644 --- a/src/modules/river/window.cpp +++ b/src/modules/river/window.cpp @@ -106,7 +106,7 @@ void Window::handle_focused_view(const char *title) { label_.hide(); // hide empty labels or labels with empty format } else { label_.show(); - label_.set_markup(fmt::format(format_, title)); + label_.set_markup(fmt::format(format_, Glib::Markup::escape_text(title).raw())); } ALabel::update();