sway/workspaces: remove deprecated field
Was deprecated a long time ago, we removed the Hyprland version. Removing this, as well.
This commit is contained in:
parent
3f61df4e66
commit
17132b250d
|
@ -125,18 +125,10 @@ void Workspaces::onCmd(const struct Ipc::ipc_response &res) {
|
||||||
std::copy(output["floating_nodes"].begin(), output["floating_nodes"].end(),
|
std::copy(output["floating_nodes"].begin(), output["floating_nodes"].end(),
|
||||||
std::back_inserter(workspaces_));
|
std::back_inserter(workspaces_));
|
||||||
}
|
}
|
||||||
if (config_["persistent_workspaces"].isObject()) {
|
|
||||||
spdlog::warn(
|
|
||||||
"persistent_workspaces is deprecated. Please change config to use "
|
|
||||||
"persistent-workspaces.");
|
|
||||||
}
|
|
||||||
|
|
||||||
// adding persistent workspaces (as per the config file)
|
// adding persistent workspaces (as per the config file)
|
||||||
if (config_["persistent-workspaces"].isObject() ||
|
if (config_["persistent-workspaces"].isObject()) {
|
||||||
config_["persistent_workspaces"].isObject()) {
|
const Json::Value &p_workspaces = config_["persistent-workspaces"];
|
||||||
const Json::Value &p_workspaces = config_["persistent-workspaces"].isObject()
|
|
||||||
? config_["persistent-workspaces"]
|
|
||||||
: config_["persistent_workspaces"];
|
|
||||||
const std::vector<std::string> p_workspaces_names = p_workspaces.getMemberNames();
|
const std::vector<std::string> p_workspaces_names = p_workspaces.getMemberNames();
|
||||||
|
|
||||||
for (const std::string &p_w_name : p_workspaces_names) {
|
for (const std::string &p_w_name : p_workspaces_names) {
|
||||||
|
|
Loading…
Reference in New Issue