aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index ed53591d..775aee0f 100644
--- a/wayland.h
+++ b/wayland.h
@@ -41,6 +41,20 @@ struct monitor {
float inch; /* e.g. 24" */
};
+enum binding_action {
+ BIND_ACTION_CLIPBOARD_COPY,
+ BIND_ACTION_CLIPBOARD_PASTE,
+ BIND_ACTION_PRIMARY_PASTE,
+ BIND_ACTION_SEARCH_START,
+ BIND_ACTION_COUNT,
+};
+
+struct key_binding {
+ xkb_mod_mask_t mods;
+ xkb_keysym_t sym;
+ enum binding_action action;
+};
+
struct kbd {
struct xkb_context *xkb;
struct xkb_keymap *xkb_keymap;
@@ -66,6 +80,8 @@ struct kbd {
bool alt;
bool ctrl;
bool meta;
+
+ tll(struct key_binding) key_bindings;
};
struct wl_clipboard {