fix(sway/workspaces): window-rewrite: do not check for window-format

Remove check for unused window-format option.

Fixes #3797.
This commit is contained in:
mliszcz 2025-12-02 17:13:39 +01:00
parent 161367d961
commit e362550e27
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()) {