From 71dc9f6128b8d2e382b2a574d2d5f15e2d907f3a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 19 Dec 2024 20:23:32 +0000 Subject: pluginAPI: add register dispatcher v2 --- src/SharedDefs.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/SharedDefs.hpp') 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 #include +#include #include enum eIcons : uint8_t { @@ -50,6 +51,12 @@ struct SHyprCtlCommand { std::function fn; }; +struct SDispatchResult { + bool passEvent = false; + bool success = true; + std::string error; +}; + typedef int64_t WINDOWID; typedef int64_t MONITORID; typedef int64_t WORKSPACEID; -- cgit v1.2.3