mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
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> |
||
|---|---|---|
| .. | ||
| sway | ||
| swaybar | ||
| swaynag | ||
| background-image.h | ||
| cairo_util.h | ||
| ipc-client.h | ||
| ipc.h | ||
| list.h | ||
| log.h | ||
| loop.h | ||
| meson.build | ||
| pango.h | ||
| pool-buffer.h | ||
| stringop.h | ||
| util.h | ||