File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 99
1010#include " client.hpp"
1111#include " dwl-ipc-unstable-v2-client-protocol.h"
12+ #include " glibmm/markup.h"
1213#include " util/rewrite_string.hpp"
1314
1415namespace waybar ::modules::dwl {
@@ -97,11 +98,17 @@ Window::~Window() {
9798 }
9899}
99100
100- void Window::handle_title (const char *title) { title_ = title; }
101+ void Window::handle_title (const char *title) {
102+ title_ = Glib::Markup::escape_text (title);
103+ }
101104
102- void Window::handle_appid (const char *appid) { appid_ = appid; }
105+ void Window::handle_appid (const char *appid) {
106+ appid_ = Glib::Markup::escape_text (appid);
107+ }
103108
104- void Window::handle_layout_symbol (const char *layout_symbol) { layout_symbol_ = layout_symbol; }
109+ void Window::handle_layout_symbol (const char *layout_symbol) {
110+ layout_symbol_ = Glib::Markup::escape_text (layout_symbol);
111+ }
105112
106113void Window::handle_layout (const uint32_t layout) { layout_ = layout; }
107114
You can’t perform that action at this time.
0 commit comments