aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-12 09:46:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-12 09:46:27 +0000
commitc58f9a9ef93fd3fd2be711906b8214a53665e45f (patch)
treee760cd598211e03c91e4ff03a5acf7f444b48011 /wayland.h
parentchangelog: user configurable key- and mouse bindings (diff)
config: mouse-bindings: verify button isn't already mapped
A button may only be mapped to a single action. Detect when the user tried to map the same button to multiple actions and error out. To clear a binding (for example, to free up a button from the default bindings), one can set the action it is bound to to `NONE` (e.g. `primary-paste=NONE`).
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index 2ddfdf87..b8b91c00 100644
--- a/wayland.h
+++ b/wayland.h
@@ -42,6 +42,7 @@ struct monitor {
};
enum binding_action {
+ BIND_ACTION_NONE,
BIND_ACTION_SCROLLBACK_UP,
BIND_ACTION_SCROLLBACK_DOWN,
BIND_ACTION_CLIPBOARD_COPY,