sway/window: escape window title in tooltip markup
setTooltipMarkup uses set_tooltip_markup without escaping. Raw window titles routinely contain &, < and >, which break Pango markup parsing and the tooltip. Escape the title with Glib::Markup::escape_text before passing it.
This commit is contained in:
@@ -101,7 +101,7 @@ auto Window::update() -> void {
|
||||
fmt::arg("shell", shell_), fmt::arg("marks", marks_)),
|
||||
config_["rewrite"]));
|
||||
if (tooltipEnabled()) {
|
||||
setTooltipMarkup(window_);
|
||||
setTooltipMarkup(Glib::Markup::escape_text(window_));
|
||||
}
|
||||
|
||||
// Resolve the app icon on the main thread to avoid racing with GTK draw on the
|
||||
|
||||
Reference in New Issue
Block a user