diff options
| author | Brian Ashworth <[email protected]> | 2019-01-06 13:16:54 -0500 | 
|---|---|---|
| committer | Brian Ashworth <[email protected]> | 2019-01-09 11:29:04 -0500 | 
| commit | eefa6b1ad3f7e6fcbcf52595a833ae28364c18ea (patch) | |
| tree | b65eda998dbfc67d338253516441ad227c38cb1e /include/sway | |
| parent | 6f6a9af60ec98a6f18f1163317dee74b88328dab (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')
| -rw-r--r-- | include/sway/config.h | 3 | 
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 { | 
