summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.hpp
diff options
context:
space:
mode:
authorAlexander <51529891+Truenya@users.noreply.github.com>2024-06-23 00:52:42 +0300
committerGitHub <noreply@github.com>2024-06-22 23:52:42 +0200
commit7f09646ab8b5b6d9f835681d0af5d7a0dc29d8f1 (patch)
tree269ecbddad6cafe84c56c167e767617fcf324ee1 /src/helpers/MiscFunctions.hpp
parent0b924f541c744f96d32c9a0d98dcfd90205bab4c (diff)
core: add ability to select previous workspace per monitor (#6598)
Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
Diffstat (limited to 'src/helpers/MiscFunctions.hpp')
-rw-r--r--src/helpers/MiscFunctions.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/helpers/MiscFunctions.hpp b/src/helpers/MiscFunctions.hpp
index 111abba0..33be7965 100644
--- a/src/helpers/MiscFunctions.hpp
+++ b/src/helpers/MiscFunctions.hpp
@@ -13,13 +13,18 @@ struct SCallstackFrameInfo {
std::string desc;
};
+struct SWorkspaceIDName {
+ int id = -1;
+ std::string name;
+};
+
std::string absolutePath(const std::string&, const std::string&);
void addWLSignal(wl_signal*, wl_listener*, void* pOwner, const std::string& ownerString);
void removeWLSignal(wl_listener*);
std::string escapeJSONStrings(const std::string& str);
bool isDirection(const std::string&);
bool isDirection(const char&);
-int getWorkspaceIDFromString(const std::string&, std::string&);
+SWorkspaceIDName getWorkspaceIDNameFromString(const std::string&);
std::optional<std::string> cleanCmdForWorkspace(const std::string&, std::string);
float vecToRectDistanceSquared(const Vector2D& vec, const Vector2D& p1, const Vector2D& p2);
void logSystemInfo();
@@ -42,4 +47,4 @@ template <typename... Args>
// because any suck format specifier will cause a compilation error
// this is actually what std::format in stdlib does
return std::vformat(fmt.get(), std::make_format_args(args...));
-} \ No newline at end of file
+}