From eefa6b1ad3f7e6fcbcf52595a833ae28364c18ea Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Sun, 6 Jan 2019 13:16:54 -0500 Subject: 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. --- include/sway/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/sway') 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 { -- cgit v1.2.3-54-g00ecf