Merge pull request #4040 from coreydoughty/hypr-submap-patch

hyprland/submap: allow pango markup.
This commit is contained in:
Alexis Rouillard 2025-06-22 08:33:53 +01:00 committed by GitHub
commit 249b452829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ void Submap::onEvent(const std::string& ev) {
return; return;
} }
auto submapName = ev.substr(ev.find_last_of('>') + 1); auto submapName = ev.substr(ev.find_first_of('>') + 2 );
submapName = waybar::util::sanitize_string(submapName);
if (!submap_.empty()) { if (!submap_.empty()) {
label_.get_style_context()->remove_class(submap_); label_.get_style_context()->remove_class(submap_);