Add options to disable touchscreen input during multi-finger gestures and adjust gesture activation threshold.
-
Is it possible to add a feature that disables input during multi-finger touch? For example, when I trigger a three-finger gesture in the terminal, it also selects text; in Firefox, it might accidentally zoom the webpage. These behaviors are somewhat annoying.
-
Is it possible to add a feature to adjust the threshold for gesture activation? I use swipe {left, right, up, down} 3 to switch workspaces, but this touch gesture is hard to trigger. It only works when making a large arm movement, while simply moving my fingers doesn't trigger it.
https://github.com/user-attachments/assets/7485a15d-26bd-41f6-8f1b-b6ea50bb35b0
For 2. there is a gesture sensitivity option, maybe try adjusting it.
For 1. the difficulties is that we don't know what the user will do. Like the thing is, maybe you have 3-finger pinch gesture for expo, but otherwise you want to forward for ex. 4 fingers to an app which supports additional multi-finger gestures? And of course when you press down the 3 fingers, we don't know whether this will trigger a gesture or not. All in all the best idea that I have is a blanket 'don't forward touch to clients if >= N fingers' rule (maybe with a configurable N). Does that sound reasonable? Any better ideas? Esp. if you know how for ex. gnome/mutter handles this. I think that there aren't many compositors which support touch gestures at all, so we don't have lots of prior work.
I think it's reasonable for Wayfire to fully take over touch input with >=N fingers. Generally, applications support gestures with up to 2 fingers, but if an application supports more fingers, the user can simply not enable this option or set N to a sufficiently large value. I tested GNOME's gesture behavior, and it seems that GNOME takes full control of three-finger touch after a slight movement following the three-finger press.
https://drive.google.com/file/d/1o9K3WBcz1_-O7lz579OsZ0KOsAkAA0lG/view?usp=sharing