moves createWorkspace to update()

pull/2316/head
MightyPlaza 2023-07-16 01:43:54 +00:00 committed by GitHub
parent 5f0fa71f32
commit 6d24b22b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class Workspaces : public AModule, public EventHandler {
private: private:
void onEvent(const std::string&) override; void onEvent(const std::string&) override;
void sort_workspaces(); void sort_workspaces();
void create_workspace(const Json::Value& value); void create_workspace(Json::Value& value);
void remove_workspace(std::string name); void remove_workspace(std::string name);
bool all_outputs_ = false; bool all_outputs_ = false;
@ -65,7 +65,7 @@ class Workspaces : public AModule, public EventHandler {
bool with_icon_; bool with_icon_;
std::string active_workspace_name; std::string active_workspace_name;
std::vector<std::unique_ptr<Workspace>> workspaces_; std::vector<std::unique_ptr<Workspace>> workspaces_;
std::vector<int> workspaces_to_create_; std::vector<Json::Value> workspaces_to_create_;
std::vector<std::string> workspaces_to_remove_; std::vector<std::string> workspaces_to_remove_;
std::mutex mutex_; std::mutex mutex_;
const Bar& bar_; const Bar& bar_;