swayfx/include/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
..
desktop Rebase the cursor after applying transactions 2018-10-25 23:37:40 +10:00
input Add helpers for improved mouse button parsing 2019-01-09 11:29:04 -05:00
tree Fix segfault when destroying unmapped child view 2018-11-28 14:08:20 +01:00
commands.h bar_cmd_bind: utilize mouse button helpers 2019-01-10 12:43:10 -05:00
config.h bind{code,sym}: utilize mouse button helpers 2019-01-09 11:29:04 -05:00
criteria.h Use #if instead of #ifdef 2018-11-18 00:33:06 +01:00
debug.h Turn funcs() into funcs(void) 2018-09-30 14:09:05 +03:00
decoration.h Handle views created after decoration mode is sent for xdg-shell 2018-08-06 15:20:30 +01:00
desktop.h Store geometry in the view and handle any floating view resizing 2018-08-18 15:10:06 +10:00
ipc-json.h Turn funcs() into funcs(void) 2018-09-30 14:09:05 +03:00
ipc-server.h swaybar: show hidden bar on key event 2018-10-14 13:33:12 +01:00
layers.h Update for swaywm/wlroots#1243 2018-09-14 19:21:44 +02:00
output.h Combine output_by_name and output_by_identifier 2018-12-20 19:55:29 +01:00
security.h Move get_feature_policy to sway/security.c 2017-04-16 17:09:53 +03:00
server.h Use #if instead of #ifdef 2018-11-18 00:33:06 +01:00
swaynag.h Remove swaynag_clone and use memcpy 2018-08-03 10:40:09 -04:00
xdg_decoration.h Improve CSD logic 2018-09-27 22:51:37 +10:00
xwayland.h Parse missing i3 window types 2018-10-21 15:59:04 +02:00