sway-patched-tray-menu/sway
Brian Ashworth 6f6a9af60e Add helpers for improved mouse button parsing
The following helper functions have been added to aid with parsing mouse
buttons from a string:

1. `get_mouse_bindsym`: attempts to parse the string as an x11 button
(button[1-9]) or as an event name (ex BTN_LEFT or BTN_SIDE)
2. `get_mouse_bindcode`: attempts to parse the string as an event code
and validates that the event code is a button (starts with `BTN_`).
3. `get_mouse_button`: this is a conveniency function for callers that
do not care whether a bindsym or bindcode are used and attempts to parse
the string as a bindsym and then bindcode.

None of these functions are used in this commit. The sole purpose of
this commit is to make the larger set more granular and easier to
review/manipulate. There will be a series of commits following this one
that will modify any command which uses a mouse button to use these
helpers.
2019-01-09 11:29:04 -05:00
..
commands Reset container dimensions when moving into workspace from direction 2019-01-09 11:22:23 -05:00
config swaybar: implement tray config 2018-12-31 20:40:18 +00:00
desktop Use %z for printing size_t 2019-01-06 12:20:59 +00:00
input Add helpers for improved mouse button parsing 2019-01-09 11:29:04 -05:00
tree seat: unhide the cursor if it is warped to focus 2019-01-07 10:30:19 -05:00
commands.c Merge pull request #3275 from ianyfan/remove-readline 2019-01-08 10:05:37 +01:00
config.c Simplify evdev includes on FreeBSD by relying on up-to-date package 2019-01-09 11:02:05 +00:00
criteria.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
debug-tree.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c swaybar: implement tray config 2018-12-31 20:40:18 +00:00
ipc-server.c Simplify evdev includes on FreeBSD by relying on up-to-date package 2019-01-09 11:02:05 +00:00
main.c Remove readline.c 2019-01-01 09:01:25 +00:00
meson.build Implement tiling_drag_threshold 2019-01-02 23:33:33 +01:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Add data-control-v1 2019-01-07 17:01:53 -05:00
sway-bar.5.scd swaybar: implement tray config 2018-12-31 20:40:18 +00:00
sway-input.5.scd hide_cursor: change to a seat subcommand 2018-12-30 14:17:24 +01:00
sway-output.5.scd Fixed formulations. 2019-01-04 12:44:03 +01:00
sway.1.scd Undocument SWAY_CURSOR_THEME and SWAY_CURSOR_SIZE 2018-12-31 01:42:33 +01:00
sway.5.scd Fix urgency documentation 2019-01-05 23:34:04 -05:00
swaynag.c Allow swaynag to be disabled 2018-10-08 09:59:38 -04:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00