feat: Show Niri/window component when workspace is empty

This commit is contained in:
Diego Velez
2025-09-13 15:17:01 -04:00
parent 41de8964f1
commit 946f175aa2
+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);