aboutsummaryrefslogtreecommitdiff
path: root/harness/include/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'harness/include/plugin.h')
-rw-r--r--harness/include/plugin.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/harness/include/plugin.h b/harness/include/plugin.h
index c48a2f5..be3a022 100644
--- a/harness/include/plugin.h
+++ b/harness/include/plugin.h
@@ -8,6 +8,7 @@
#include <stdlib.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_keyboard.h>
+#include <wlr/types/wlr_pointer.h>
#include "plugin_types.h"
#include <foreign_intf.h>
@@ -24,6 +25,7 @@
EXPORT_INCLUDE(<foreign_intf.h>)
EXPORT_INCLUDE(<wlr/types/wlr_keyboard.h>)
EXPORT_INCLUDE(<wlr/types/wlr_input_device.h>)
+EXPORT_INCLUDE(<wlr/types/wlr_pointer.h>)
// clang-format on
#define MAX_QUEUED_ACTIONS 8
@@ -139,9 +141,12 @@ typedef struct PLUGIN {
* Handles a keybinding.
*/
EXPORT(opqst_t (*plugin_handle_keybinding)(
- struct wlr_keyboard *keyboard,
- struct wlr_keyboard_key_event *event, uint32_t modifiers, uint32_t keysym,
- uint32_t codepoint, int *out_handled, opqst_t state));
+ struct wlr_keyboard *keyboard, struct wlr_keyboard_key_event *event,
+ uint32_t modifiers, uint32_t keysym, uint32_t codepoint, int *out_handled,
+ opqst_t state));
+
+ EXPORT(opqst_t (*plugin_handle_button)(struct wlr_pointer_button_event *event,
+ opqst_t state));
/*
* Handles a surface being mapped, unmapped or destroyed.