sway-patched-tray-menu/sway
Brian Ashworth 3d6440ec26 bar_cmd_bind: utilize mouse button helpers
This modifies `bar_cmd_bindsym` to use `get_mouse_bindsym` for parsing
mouse buttons. This also introduces `cmd_bar_bindcode`, which will use
`get_mouse_bindcode` for parsing mouse buttons. Like sway bindings, the
two commands are encapsulated in a single file with shared code.

This also modifies swaybar to operate off of event codes rather than x11
button numbers, which allows for any mouse button to be used.

This introduces two new IPC properties:
- For `get_bar_config`, `event_code` has been added to the `bindings`
section and will include to event code for the button. If the event code
can be mapped to a x11 button, `input_code` will still be the x11 button
number. Otherwise, `input_code` will be `0`.
- Likewise for `click_events`, `event` has been added and will include
the event code for the button clicked. If the event code can be mapped
to a x11 button, `button` will still be the x11 button number.
Otherwise, `button` will be `0`.
2019-01-10 12:43:10 -05:00
..
commands bar_cmd_bind: utilize mouse button helpers 2019-01-10 12:43:10 -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 Merge pull request #3341 from RedSoxFan/mouse-bindings-improved 2019-01-10 10:55:22 +00:00
tree Fix segfaults on output destruction 2019-01-10 03:07:36 -05:00
commands.c Merge pull request #3275 from ianyfan/remove-readline 2019-01-08 10:05:37 +01:00
config.c Merge pull request #3400 from ianyfan/config-brace 2019-01-10 13:29:21 +01: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 bar_cmd_bind: utilize mouse button helpers 2019-01-10 12:43:10 -05:00
ipc-server.c bind{code,sym}: utilize mouse button helpers 2019-01-09 11:29:04 -05:00
main.c Remove readline.c 2019-01-01 09:01:25 +00:00
meson.build bar_cmd_bind: utilize mouse button helpers 2019-01-10 12:43:10 -05: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 bar_cmd_bind: utilize mouse button helpers 2019-01-10 12:43:10 -05: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 bind{code,sym}: utilize mouse button helpers 2019-01-09 11:29: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