pluginAPI: add register dispatcher v2
This commit is contained in:
parent
fd67ee9ecd
commit
71dc9f6128
4 changed files with 30 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue