Merge branch 'master' into feat-hyprland-submap-icon-handling

This commit is contained in:
Alexis Rouillard
2026-07-04 00:32:12 +02:00
committed by GitHub
230 changed files with 8980 additions and 1559 deletions
+7 -2
View File
@@ -73,7 +73,7 @@ auto Submap::update() -> void {
label_.set_markup(
fmt::format(fmt::runtime(format_), fmt::arg("submap", submap_), fmt::arg("icon", icon_)));
if (tooltipEnabled()) {
label_.set_tooltip_text(submap_);
label_.set_tooltip_markup(submap_);
}
event_box_.show();
}
@@ -88,7 +88,12 @@ void Submap::onEvent(const std::string& ev) {
return;
}
auto submapName = ev.substr(ev.find_first_of('>') + 2);
const auto separator = ev.find(">>");
if (separator == std::string::npos) {
spdlog::warn("hyprland submap received malformed event: {}", ev);
return;
}
auto submapName = ev.substr(separator + 2);
submap_ = submapName;