1
0
Fork 0
mirror of https://github.com/NickHu/sway synced 2025-01-15 15:41:59 +01:00
sway-patched-tray-menu/sway
Brian Ashworth 02bbefda20 bar_cmd_tray_bind: Use mouse button helpers
This modifies `bar_cmd_tray_bindsym` to use `get_mouse_bindsym` for
parsing mouse buttons. This also introduces `bar_cmd_tray_bindcode`,
which will use `get_mouse_bindcode` for parsing mouse buttons. Like with
sway bindings, the two commands are encapsulated in a single file to
maximize shared code.

This also modifies tray bindings to work off of events codes rather than
x11 buttons, which allows for any mouse buttons to be used.

For `get_bar_config`, `event_code` has been added to the `tray_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`.
2019-01-16 11:12:45 +01:00
..
commands bar_cmd_tray_bind: Use mouse button helpers 2019-01-16 11:12:45 +01:00
config bar_cmd_tray_bind: Use mouse button helpers 2019-01-16 11:12:45 +01:00
desktop layer_shell: do not SIGABRT sway on zero outputs 2019-01-16 10:55:25 +01:00
input bar_cmd_tray_bind: Use mouse button helpers 2019-01-16 11:12:45 +01:00
tree Do not damage view child when container is NULL 2019-01-15 09:06:42 +01:00
commands.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
config.c Remove 'input' field of IPC command return json 2019-01-14 07:58:02 -05: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_tray_bind: Use mouse button helpers 2019-01-16 11:12:45 +01:00
ipc-server.c bind{code,sym}: utilize mouse button helpers 2019-01-09 11:29:04 -05:00
main.c Do not send ipc_event_shutdown from ipc client 2019-01-15 22:41:54 +01:00
meson.build bar_cmd_tray_bind: Use mouse button helpers 2019-01-16 11:12:45 +01:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Merge pull request #3144 from emersion/cmd-xwayland 2019-01-13 20:42:39 -05:00
sway-bar.5.scd bar_cmd_tray_bind: Use mouse button helpers 2019-01-16 11:12:45 +01:00
sway-input.5.scd Merge pull request #3343 from RedSoxFan/seat-cursor-buttons-improved 2019-01-13 20:40:42 -05: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 Merge pull request #3144 from emersion/cmd-xwayland 2019-01-13 20:42:39 -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