]> git.sur5r.net Git - i3/i3/blobdiff - include/bindings.h
Move keyboard binding accessor to bindings.[ch]
[i3/i3] / include / bindings.h
index 3e7f34b5b2f6c86e9d389a0921085c2824b0b2ad..bae31132b17195ad62ed3c9daa09cb5472dab699 100644 (file)
@@ -29,3 +29,10 @@ Binding *configure_binding(const char *bindtype, const char *modifiers, const ch
  *
  */
 void grab_all_keys(xcb_connection_t *conn, bool bind_mode_switch);
+
+/**
+ * Returns a pointer to the keyboard Binding with the specified modifiers and
+ * keycode or NULL if no such binding exists.
+ *
+ */
+Binding *get_keyboard_binding(uint16_t modifiers, bool key_release, xcb_keycode_t keycode);