Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to enable 3fg/4fg drag gesture #2594

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jihem-el
Copy link
Contributor

@jihem-el jihem-el commented Mar 2, 2025

This PR adds a setting to enable the new 3-finger/4-finger drag setting on libinput. See https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1042 and https://who-t.blogspot.com/2025/02/libinput-and-3-finger-dragging.html for explanations and details about this feature (to summarize: this is an alternative to the tap-and-drag gesture).

This feature is currently on the main branch of libinput and will be available on the future 1.28 release. On Wayfire, the code to enable this feature is compiled only if the functions are implemented on the installed libinput version. To achieve that goal, I use a solution inspired from what is done on xf86-input-libinput project: in the meson file, I check if the function exists and then set (or not) a macro that is used to activate the code. Another solution would be to wait the release of libinput 1.28 and then require the minimum version of libinput is 1.28 (libinput = dependency('libinput', version: '>=1.28.0').

If the feature is not present on the installed libinput version, this new setting is nevertheless added to the config. But its activation does nothing.

By default, the setting disables this feature to not change the current behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant