diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-06-11 17:17:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 17:17:45 +0200 |
| commit | 8c64a4bad710fb18e9b84812bd680a89d1e93661 (patch) | |
| tree | 2439b8408abd8e14f6af35ef9cfbeb7c51429f99 /src/managers | |
| parent | 1f46296ea05f9a8e6020ab694b531c91a1abdfa6 (diff) | |
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 <mihai@fufexan.net>
Diffstat (limited to 'src/managers')
| -rw-r--r-- | src/managers/EventManager.hpp | 2 | ||||
| -rw-r--r-- | src/managers/KeybindManager.cpp | 7 | ||||
| -rw-r--r-- | src/managers/ProtocolManager.hpp | 4 | ||||
| -rw-r--r-- | src/managers/SessionLockManager.hpp | 2 | ||||
| -rw-r--r-- | src/managers/TokenManager.hpp | 2 | ||||
| -rw-r--r-- | src/managers/eventLoop/EventLoopTimer.hpp | 2 | ||||
| -rw-r--r-- | src/managers/input/InputManager.hpp | 2 | ||||
| -rw-r--r-- | src/managers/input/InputMethodPopup.hpp | 2 | ||||
| -rw-r--r-- | src/managers/input/InputMethodRelay.hpp | 2 | ||||
| -rw-r--r-- | src/managers/input/TextInput.hpp | 2 |
10 files changed, 15 insertions, 12 deletions
diff --git a/src/managers/EventManager.hpp b/src/managers/EventManager.hpp index 94dbab59..383d3246 100644 --- a/src/managers/EventManager.hpp +++ b/src/managers/EventManager.hpp @@ -3,7 +3,7 @@ #include <vector> #include "../defines.hpp" -#include "../helpers/memory/SharedPtr.hpp" +#include "../helpers/memory/Memory.hpp" struct SHyprIPCEvent { std::string event; diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 5811f4a1..49ea39a3 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -6,13 +6,16 @@ #include "KeybindManager.hpp" #include "TokenManager.hpp" #include "debug/Log.hpp" -#include "helpers/VarList.hpp" +#include "helpers/varlist/VarList.hpp" #include <optional> #include <iterator> #include <string> #include <string_view> +#include <hyprutils/string/String.hpp> +using namespace Hyprutils::String; + #include <sys/ioctl.h> #include <fcntl.h> #include <vector> @@ -836,7 +839,7 @@ bool CKeybindManager::handleInternalKeybinds(xkb_keysym_t keysym) { void CKeybindManager::spawn(std::string args) { - args = removeBeginEndSpacesTabs(args); + args = trim(args); std::string RULES = ""; diff --git a/src/managers/ProtocolManager.hpp b/src/managers/ProtocolManager.hpp index 52a54253..91fb82a0 100644 --- a/src/managers/ProtocolManager.hpp +++ b/src/managers/ProtocolManager.hpp @@ -5,8 +5,8 @@ #include "../protocols/TextInputV1.hpp" #include "../protocols/GlobalShortcuts.hpp" #include "../protocols/Screencopy.hpp" -#include "../helpers/memory/WeakPtr.hpp" -#include "../helpers/signal/Listener.hpp" +#include "../helpers/memory/Memory.hpp" +#include "../helpers/signal/Signal.hpp" #include <unordered_map> class CProtocolManager { diff --git a/src/managers/SessionLockManager.hpp b/src/managers/SessionLockManager.hpp index ea1b2029..fe4a4434 100644 --- a/src/managers/SessionLockManager.hpp +++ b/src/managers/SessionLockManager.hpp @@ -2,7 +2,7 @@ #include "../defines.hpp" #include "../helpers/Timer.hpp" -#include "../helpers/signal/Listener.hpp" +#include "../helpers/signal/Signal.hpp" #include <cstdint> #include <unordered_map> diff --git a/src/managers/TokenManager.hpp b/src/managers/TokenManager.hpp index afe8c55b..4587f556 100644 --- a/src/managers/TokenManager.hpp +++ b/src/managers/TokenManager.hpp @@ -5,7 +5,7 @@ #include <unordered_map> #include <string> -#include "../helpers/memory/SharedPtr.hpp" +#include "../helpers/memory/Memory.hpp" class CUUIDToken { public: diff --git a/src/managers/eventLoop/EventLoopTimer.hpp b/src/managers/eventLoop/EventLoopTimer.hpp index fc0b2522..73f5dc73 100644 --- a/src/managers/eventLoop/EventLoopTimer.hpp +++ b/src/managers/eventLoop/EventLoopTimer.hpp @@ -4,7 +4,7 @@ #include <functional> #include <optional> -#include "../../helpers/memory/SharedPtr.hpp" +#include "../../helpers/memory/Memory.hpp" class CEventLoopTimer { public: diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp index 9fdf061c..930f3025 100644 --- a/src/managers/input/InputManager.hpp +++ b/src/managers/input/InputManager.hpp @@ -6,7 +6,7 @@ #include "../../helpers/WLClasses.hpp" #include "../../helpers/Timer.hpp" #include "InputMethodRelay.hpp" -#include "../../helpers/signal/Listener.hpp" +#include "../../helpers/signal/Signal.hpp" #include "../../devices/IPointer.hpp" #include "../../devices/ITouch.hpp" #include "../../devices/Tablet.hpp" diff --git a/src/managers/input/InputMethodPopup.hpp b/src/managers/input/InputMethodPopup.hpp index 9c5491bf..3151aedb 100644 --- a/src/managers/input/InputMethodPopup.hpp +++ b/src/managers/input/InputMethodPopup.hpp @@ -4,7 +4,7 @@ #include "../../desktop/WLSurface.hpp" #include "../../macros.hpp" #include "../../helpers/Box.hpp" -#include "../../helpers/signal/Listener.hpp" +#include "../../helpers/signal/Signal.hpp" class CInputMethodPopupV2; diff --git a/src/managers/input/InputMethodRelay.hpp b/src/managers/input/InputMethodRelay.hpp index e942add8..e13a1f1c 100644 --- a/src/managers/input/InputMethodRelay.hpp +++ b/src/managers/input/InputMethodRelay.hpp @@ -3,7 +3,7 @@ #include <list> #include "../../defines.hpp" #include "../../helpers/WLClasses.hpp" -#include "../../helpers/signal/Listener.hpp" +#include "../../helpers/signal/Signal.hpp" #include "TextInput.hpp" #include "InputMethodPopup.hpp" #include <any> diff --git a/src/managers/input/TextInput.hpp b/src/managers/input/TextInput.hpp index 30fbb4cc..61a664b9 100644 --- a/src/managers/input/TextInput.hpp +++ b/src/managers/input/TextInput.hpp @@ -3,7 +3,7 @@ #include "../../helpers/WLListener.hpp" #include "../../macros.hpp" #include "../../helpers/Box.hpp" -#include "../../helpers/signal/Listener.hpp" +#include "../../helpers/signal/Signal.hpp" #include <memory> struct wl_client; |
