Merge pull request #4677 from mliszcz/remove-window-format

fix(sway/workspaces): window-rewrite: do not check for window-format
This commit is contained in:
Alexis Rouillard 2025-12-28 23:12:44 +01:00 committed by GitHub
commit 06484547d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -179,7 +179,6 @@ n.b.: the list of outputs can be obtained from command line using *swaymsg -t ge
"format": "<span size='larger'>{name}</span> {windows}",
"format-window-separator": " | ",
"window-rewrite-default": "{name}",
"window-format": "<span color='#e0e0e0'>{name}</span>",
"window-rewrite": {
"class<firefox>": "",
"class<kitty>": "k",

View File

@ -331,7 +331,7 @@ auto Workspaces::update() -> void {
}
std::string output = (*it)["name"].asString();
std::string windows = "";
if (config_["window-format"].isString()) {
if (config_["window-rewrite"].isObject()) {
updateWindows((*it), windows);
}
if (config_["format"].isString()) {