mirror of
https://github.com/swaywm/sway.git
synced 2026-04-24 06:46:22 -04:00
Passing of gesture events added in #4794 allows to use them in clients but not in sway itself, for example to switch workspaces using three-finger swipes. Add support for binding four basic directional swipes to arbitrary sway commands. Add the necessary handling to default seatops to execute them at the beginning or end of a swipe gesture. This for now responds to all swipes, ignoring the number of fingers used. The former throws up the intrinsic conundrum that we can not know the kind of swipe that's going to happen because it can change all through its lifecylce. Therefore we can only execute bindings on release. Test plan: - add workspace switching to config like so: bindsym --whole-window SWIPE_LEFT workspace prev_on_output bindsym --whole-window SWIPE_RIGHT workspace next_on_output - start sway and open two workspaces - switch back and forth using horizontal three-finger swipes, observing that vertical swipes won't 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 | ||