Skip to content

touchpad: Allow gestures with >3 fingers

Gregor Niehl requested to merge gregorni/gnome-shell:4-finger-gestures into main

This was discussed in the GNOME Shell and GNOME Design Matrix rooms. The purpose is to make it easier to switch workspaces, by also allowing swipes with 4 fingers.

As far as I could tell, there are two possible approaches:

  1. Allowing any amount of touches greater or equal to 3. This is what I did right now, since it requires less changes to the code. This also allows 5-finger (and 6, 7, 8, etc. finger) gestures. I am not sure if that is the wanted behavior.
  2. Turning GESTURE_FINGER_COUNT into a tuple containing (3, 4), and only allowing gestures with finger counts within that tuple. This would ensure only gestures with 3 or 4 fingers register.

I'd appreciate feedback on which approach is preferred.

I don't know how to test this change for myself, since nested Mutter sessions don't register touchpad gestures. If there is a way to test the touchpad gestures, I'd like to know.

Merge request reports