sway/include/sway
Michael Weiser abb82c153e input: Extend swipe gesture support to finger count
Swipe pointer gesture bindings added in an earlier commit would catch
swipes indiscriminately, ignoring the number of fingers used.

Add the necessary logic to distinguish three- from four-finger swipes.
Other finger counts cannot be bound to and are passed through to clients.
Continue to trivially map each dimension of a gesture to discrete pseudo
button codes considering that we're unlikely to take this much further
and would otherwise need to extend struct sway_binding to carry some
kind of button-specific internal data.

Test plan:
- add workspace switching to config like so:

bindsym --whole-window SWIPE_3_LEFT workspace prev_on_output
bindsym --whole-window SWIPE_4_RIGHT workspace next_on_output

- start sway and open two workspaces
- switch back and forth using horizontal three- and four-finger swipes,
  observing that different finger counts are necessary per direction

Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
2021-08-05 20:07:45 +02:00
..
desktop idle_inhibit: Store wlr inhibitor instead of view 2021-03-21 12:27:29 +01:00
input input: Extend swipe gesture support to finger count 2021-08-05 20:07:45 +02:00
tree view: remove reference to wlr_wl_shell_surface 2021-07-27 17:31:29 +02:00
commands.h Declare all struct cmd_handler arrays const 2021-02-04 09:49:06 +01:00
config.h config: Remove unused mouse binding structure 2021-08-05 20:07:44 +02:00
criteria.h Introduce pid criteria token 2020-02-27 14:03:22 +01: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 i3-compat: add GET_BINDING_STATE IPC command 2020-06-14 00:55:14 -04:00
ipc-server.h ipc: add an input event 2019-07-23 20:45:46 +03:00
layers.h Update wlr_box includes 2021-07-07 11:29:14 +02:00
output.h Update wlr_box includes 2021-07-07 11:29:14 +02:00
server.h Implement xdg-activation-v1 2021-06-02 19:39:40 +02:00
surface.h view: add max_render_time 2019-11-17 20:18:42 +01:00
swaynag.h Spawn swaynag as a wayland client 2019-04-14 12:41:59 +03: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