Skip to content

Commit

Permalink
moves createWorkspace to update()
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPlaza authored Jul 16, 2023
1 parent 6d24b22 commit 2bfc0e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/hyprland/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ void Workspaces::onEvent(const std::string &ev) {
for (Json::Value workspace_json : workspaces_json) {
if (workspace_json["name"].asString() == payload &&
(all_outputs() || bar_.output->name == workspace_json["monitor"].asString()) &&
(workspace_json["name"].asString().find("special:") != 0 || show_special()))
create_workspace(workspace_json);
(workspace_json["name"].asString().find("special:") != 0 || show_special())) {
workspaces_to_create_.push_back(workspace_json);
break;
}
}

} else if (eventName == "focusedmon") {
Expand Down

0 comments on commit 2bfc0e1

Please sign in to comment.