]> git.sur5r.net Git - i3/i3/blobdiff - include/data.h
Add `input_type` enum to `Binding` typedef
[i3/i3] / include / data.h
index 8a44fb1d49ce6f249166d5769c6ee4c528ef2e90..6fc7b40af7b3cff28841bdcadfb598c6932850fd 100644 (file)
@@ -213,6 +213,15 @@ struct regex {
  *
  */
 struct Binding {
+    /* The type of input this binding is for. (Mouse bindings are not yet
+     * implemented. All bindings are currently assumed to be keyboard bindings.) */
+    enum {
+        /* Created with "bindsym", "bindcode", and "bind" */
+        B_KEYBOARD = 0,
+        /* Created with "bindmouse" (not yet implemented). */
+        B_MOUSE = 1,
+    } input_type;
+
     /** If true, the binding should be executed upon a KeyRelease event, not a
      * KeyPress (the default). */
     enum {