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:
Alex
2026-07-05 10:13:24 +02:00
parent 91ca603b04
commit c9012c4107
+1 -1
View File
@@ -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