Merge pull request #4463 from diego-velez/master

feat: Show Niri/window component when workspace is empty
This commit is contained in:
Alexis Rouillard
2026-07-03 22:50:25 +02:00
committed by GitHub
+6 -1
View File
@@ -82,7 +82,12 @@ void Window::doUpdate() {
oldAppId_ = appId; oldAppId_ = appId;
} }
} else { } else {
label_.hide(); label_.show();
label_.set_markup(waybar::util::rewriteString(
fmt::format(fmt::runtime(format_), fmt::arg("title", ""),
fmt::arg("app_id", "")),
config_["rewrite"]));
updateAppIconName("", ""); updateAppIconName("", "");
setClass("solo", false); setClass("solo", false);
if (!oldAppId_.empty()) setClass(oldAppId_, false); if (!oldAppId_.empty()) setClass(oldAppId_, false);