aboutsummaryrefslogtreecommitdiffstats
path: root/matchbox/mb-wm-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'matchbox/mb-wm-types.h')
-rw-r--r--matchbox/mb-wm-types.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/matchbox/mb-wm-types.h b/matchbox/mb-wm-types.h
index 5111f2b..0e8b503 100644
--- a/matchbox/mb-wm-types.h
+++ b/matchbox/mb-wm-types.h
@@ -382,4 +382,28 @@ typedef enum MBWMModality
#define MB_CMD_COMPOSITE 8
#define MB_CMB_KEYS_RELOAD 9
+/**
+ * MBWMXlibFilterReturn:
+ * @MB_WM_XLIB_FILTER_CONTINUE: The event was not handled, continues the
+ * processing
+ * @MB_WM_XLIB_FILTER_REMOVE: Remove the event, stops the processing
+ *
+ * Return values for the #MBWMXlibFilterFunc function.
+ */
+typedef enum _MBWMXlibFilterReturn {
+ MB_WM_XLIB_FILTER_CONTINUE,
+ MB_WM_XLIB_FILTER_REMOVE
+} MBWMXlibFilterReturn;
+
+/**
+ * MBWMXlibFilterFunc:
+ *
+ * A callback function that can be registered with
+ * _mb_wm_manager_xlib_add_filter. The function should return
+ * %MB_WM_XLIB_FILTER_REMOVE if it wants to prevent further processing
+ * or %MB_WM_XLIB_FILTER_CONTINUE otherwise.
+ */
+typedef MBWMXlibFilterReturn (* MBWMXlibFilterFunc) (XEvent *xevent,
+ void *data);
+
#endif