diff options
author | Vaxry <[email protected]> | 2023-11-05 16:18:41 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-11-05 16:18:41 +0000 |
commit | d8b7ded18c47e5e10d21ac162a42256d573a9e91 (patch) | |
tree | b708bf078bea9540d697255a854b4c8e652d319d /src/helpers/MiscFunctions.cpp | |
parent | c4e1a9b13baf9a0f8b58824803c4a9e63cbc41b3 (diff) | |
download | Hyprland-d8b7ded18c47e5e10d21ac162a42256d573a9e91.tar.gz Hyprland-d8b7ded18c47e5e10d21ac162a42256d573a9e91.zip |
compositor: find windows in direction on floating
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
-rw-r--r-- | src/helpers/MiscFunctions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index b3a8ade7..376ac032 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -242,6 +242,10 @@ bool isDirection(const std::string& arg) { return arg == "l" || arg == "r" || arg == "u" || arg == "d" || arg == "t" || arg == "b"; } +bool isDirection(const char& arg) { + return arg == 'l' || arg == 'r' || arg == 'u' || arg == 'd' || arg == 't' || arg == 'b'; +} + int getWorkspaceIDFromString(const std::string& in, std::string& outName) { int result = INT_MAX; if (in.starts_with("special")) { |