diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2024-10-30 18:58:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 18:58:36 +0000 |
| commit | 12c1bb936dd463c4188def1c73c2bb786433a6dc (patch) | |
| tree | d59596edbf4c4ffa0581b92e3bbcf5710e9758e6 /src/helpers/MiscFunctions.hpp | |
| parent | 5f721dce36651232ae245d872c17dfa3aae5cc6c (diff) | |
internal: check size limit in layouts (#8298)
modified: src/desktop/Window.cpp
modified: src/desktop/Window.hpp
modified: src/events/Windows.cpp
modified: src/helpers/MiscFunctions.cpp
modified: src/helpers/MiscFunctions.hpp
modified: src/layout/DwindleLayout.cpp
modified: src/layout/IHyprLayout.cpp
modified: src/layout/MasterLayout.cpp
modified: src/macros.hpp
Diffstat (limited to 'src/helpers/MiscFunctions.hpp')
| -rw-r--r-- | src/helpers/MiscFunctions.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.hpp b/src/helpers/MiscFunctions.hpp index f696fc5d..34b23746 100644 --- a/src/helpers/MiscFunctions.hpp +++ b/src/helpers/MiscFunctions.hpp @@ -40,6 +40,7 @@ void throwError(const std::string& err); bool envEnabled(const std::string& env); int allocateSHMFile(size_t len); bool allocateSHMFilePair(size_t size, int* rw_fd_ptr, int* ro_fd_ptr); +float stringToPercentage(const std::string& VALUE, const float REL); template <typename... Args> [[deprecated("use std::format instead")]] std::string getFormat(std::format_string<Args...> fmt, Args&&... args) { |
