From 6d24b22b21ccf779ace5032629fa1b2bd450dc74 Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Sun, 16 Jul 2023 01:43:54 +0000 Subject: [PATCH] moves createWorkspace to update() --- include/modules/hyprland/workspaces.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/modules/hyprland/workspaces.hpp b/include/modules/hyprland/workspaces.hpp index a2910f5..47df01f 100644 --- a/include/modules/hyprland/workspaces.hpp +++ b/include/modules/hyprland/workspaces.hpp @@ -54,7 +54,7 @@ class Workspaces : public AModule, public EventHandler { private: void onEvent(const std::string&) override; void sort_workspaces(); - void create_workspace(const Json::Value& value); + void create_workspace(Json::Value& value); void remove_workspace(std::string name); bool all_outputs_ = false; @@ -65,7 +65,7 @@ class Workspaces : public AModule, public EventHandler { bool with_icon_; std::string active_workspace_name; std::vector> workspaces_; - std::vector workspaces_to_create_; + std::vector workspaces_to_create_; std::vector workspaces_to_remove_; std::mutex mutex_; const Bar& bar_;