niri/workspaces: feature - add "hide-empty" config option (#4965)
This commit is contained in:
@@ -114,6 +114,11 @@ void Workspaces::doUpdate() {
|
|||||||
button.show();
|
button.show();
|
||||||
else
|
else
|
||||||
button.hide();
|
button.hide();
|
||||||
|
} else if (config_["hide-empty"].asBool()) {
|
||||||
|
if (ws["active_window_id"].isNull() && !ws["is_focused"].asBool())
|
||||||
|
button.hide();
|
||||||
|
else
|
||||||
|
button.show();
|
||||||
} else {
|
} else {
|
||||||
button.show();
|
button.show();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user