aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/desktop/Workspace.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-06-11 17:17:45 +0200
committerGitHub <[email protected]>2024-06-11 17:17:45 +0200
commit8c64a4bad710fb18e9b84812bd680a89d1e93661 (patch)
tree2439b8408abd8e14f6af35ef9cfbeb7c51429f99 /src/desktop/Workspace.cpp
parent1f46296ea05f9a8e6020ab694b531c91a1abdfa6 (diff)
downloadHyprland-8c64a4bad710fb18e9b84812bd680a89d1e93661.tar.gz
Hyprland-8c64a4bad710fb18e9b84812bd680a89d1e93661.zip
core: move to hyprutils for utils (#6385)
* core: move to hyprutils for utils Nix: add hyprutils dep * Meson: add hyprutils dep * flake.lock: update --------- Co-authored-by: Mihai Fufezan <[email protected]>
Diffstat (limited to 'src/desktop/Workspace.cpp')
-rw-r--r--src/desktop/Workspace.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/desktop/Workspace.cpp b/src/desktop/Workspace.cpp
index 7a836b3b..ed09fbc0 100644
--- a/src/desktop/Workspace.cpp
+++ b/src/desktop/Workspace.cpp
@@ -2,6 +2,9 @@
#include "../Compositor.hpp"
#include "../config/ConfigValue.hpp"
+#include <hyprutils/string/String.hpp>
+using namespace Hyprutils::String;
+
PHLWORKSPACE CWorkspace::create(int id, int monitorID, std::string name, bool special, bool isEmtpy) {
PHLWORKSPACE workspace = makeShared<CWorkspace>(id, monitorID, name, special, isEmtpy);
workspace->init(workspace);
@@ -219,7 +222,7 @@ std::string CWorkspace::getConfigName() {
}
bool CWorkspace::matchesStaticSelector(const std::string& selector_) {
- auto selector = removeBeginEndSpacesTabs(selector_);
+ auto selector = trim(selector_);
if (selector.empty())
return true;