moves createWorkspace to update()
parent
6d24b22b21
commit
2bfc0e1da6
|
@ -97,8 +97,10 @@ void Workspaces::onEvent(const std::string &ev) {
|
||||||
for (Json::Value workspace_json : workspaces_json) {
|
for (Json::Value workspace_json : workspaces_json) {
|
||||||
if (workspace_json["name"].asString() == payload &&
|
if (workspace_json["name"].asString() == payload &&
|
||||||
(all_outputs() || bar_.output->name == workspace_json["monitor"].asString()) &&
|
(all_outputs() || bar_.output->name == workspace_json["monitor"].asString()) &&
|
||||||
(workspace_json["name"].asString().find("special:") != 0 || show_special()))
|
(workspace_json["name"].asString().find("special:") != 0 || show_special())) {
|
||||||
create_workspace(workspace_json);
|
workspaces_to_create_.push_back(workspace_json);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (eventName == "focusedmon") {
|
} else if (eventName == "focusedmon") {
|
||||||
|
|
Loading…
Reference in New Issue