summaryrefslogtreecommitdiff
path: root/src/SharedDefs.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-12-19 20:23:32 +0000
committerVaxry <vaxry@vaxry.net>2024-12-19 20:23:32 +0000
commit71dc9f6128b8d2e382b2a574d2d5f15e2d907f3a (patch)
tree0b677e89a5bd3ffe2942078bd91bb0933ceb8ee7 /src/SharedDefs.hpp
parentfd67ee9ecdc7207939fe1dcea9b81050ec7d58c4 (diff)
pluginAPI: add register dispatcher v2
Diffstat (limited to 'src/SharedDefs.hpp')
-rw-r--r--src/SharedDefs.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp
index 711cf562..a6271556 100644
--- a/src/SharedDefs.hpp
+++ b/src/SharedDefs.hpp
@@ -3,6 +3,7 @@
#include "helpers/math/Math.hpp"
#include <functional>
#include <any>
+#include <string>
#include <hyprutils/math/Box.hpp>
enum eIcons : uint8_t {
@@ -50,6 +51,12 @@ struct SHyprCtlCommand {
std::function<std::string(eHyprCtlOutputFormat, std::string)> fn;
};
+struct SDispatchResult {
+ bool passEvent = false;
+ bool success = true;
+ std::string error;
+};
+
typedef int64_t WINDOWID;
typedef int64_t MONITORID;
typedef int64_t WORKSPACEID;