aboutsummaryrefslogtreecommitdiff
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-01-06 13:16:54 -0500
committerBrian Ashworth <bosrsf04@gmail.com>2019-01-09 11:29:04 -0500
commiteefa6b1ad3f7e6fcbcf52595a833ae28364c18ea (patch)
treeb65eda998dbfc67d338253516441ad227c38cb1e /include/sway/config.h
parent6f6a9af60ec98a6f18f1163317dee74b88328dab (diff)
bind{code,sym}: utilize mouse button helpers
This modifies `bindcode` and `bindsym` to use `get_mouse_bindcode` and `get_mouse_bindsym`, respectively, to parse mouse buttons. Additionally, the `BINDING_MOUSE` type has been split into `BINDING_MOUSECODE` and `BINDING_MOUSESYM` to match keys and allow for mouse bindcodes to be used. Between the two commands, all button syms and codes should be supported, including x11 axis buttons.
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index ebf16e6a..29c21afe 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -27,7 +27,8 @@ struct sway_variable {
enum binding_input_type {
BINDING_KEYCODE,
BINDING_KEYSYM,
- BINDING_MOUSE,
+ BINDING_MOUSECODE,
+ BINDING_MOUSESYM,
};
enum binding_flags {