diff options
author | Ian Fan <ianfan0@gmail.com> | 2019-01-10 10:55:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-10 10:55:22 +0000 |
commit | 15ac580b28a2906d799fd709e83cb75e0efc3f45 (patch) | |
tree | 9a1f67d98e90d12eb83ffc99b6cac659f8f3f533 /include | |
parent | 058428b8df156d8ed6b93c935dea10cbe51a9619 (diff) | |
parent | eefa6b1ad3f7e6fcbcf52595a833ae28364c18ea (diff) | |
download | sway-15ac580b28a2906d799fd709e83cb75e0efc3f45.tar.xz |
Merge pull request #3341 from RedSoxFan/mouse-bindings-improved
Improve mouse button parsing: helpers and bind{code/sym}
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 3 | ||||
-rw-r--r-- | include/sway/input/cursor.h | 8 |
2 files changed, 10 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 { diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index 22e278b0..4636bf6b 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h @@ -86,4 +86,12 @@ void cursor_warp_to_container(struct sway_cursor *cursor, void cursor_warp_to_workspace(struct sway_cursor *cursor, struct sway_workspace *workspace); + +uint32_t get_mouse_bindsym(const char *name, char **error); + +uint32_t get_mouse_bindcode(const char *name, char **error); + +// Considers both bindsym and bindcode +uint32_t get_mouse_button(const char *name, char **error); + #endif |