JoseExposito / touchegg

Linux multi-touch gesture recognizer
GNU General Public License v3.0
3.61k stars 167 forks source link

Four-finger swipe gestures note executing commands #640

Closed jensbech closed 11 months ago

jensbech commented 1 year ago

Describe the bug

Three and four finger swipes are configured properly. Three finger swipes execute the desired command, while four finger swipes do not.

Expected behaviour

Expect four finger swipes to execute the configured command.

Actual behaviour

No action is taken, but gesture is logged just fine.

Logs

$ touchegg --debug
Gesture begin detected
        Gesture information:
                Fingers: 3
                Type: SWIPE
                Direction: RIGHT
        Gesture performed on app: konsole
        Action configured for this gesture
        Starting action
Gesture update detected (5.38536%)
Gesture update detected (9.64035%)
Gesture update detected (12.69%)
Gesture update detected (16.5592%)
Gesture update detected (21.3687%)
Gesture update detected (24.1411%)
Gesture end detected
Gesture begin detected
        Gesture information:
                Fingers: 4
                Type: SWIPE
                Direction: RIGHT
        Gesture performed on app: konsole
        Action configured for this gesture
        Starting action
^[
Gesture update detected (1.50404%)
Gesture update detected (3.0861%)
Gesture update detected (4.08054%)
Gesture update detected (5.52699%)
Gesture update detected (6.90113%)
Gesture update detected (8.04021%)
Gesture end detected

Config excerpt. Note that the 3-finger action works great.

    <gesture type="SWIPE" fingers="3" direction="RIGHT">
      <action type="SEND_KEYS">
        <keys>XF86AudioPrev</keys>
      </action>
    </gesture>

    <gesture type="SWIPE" fingers="4" direction="RIGHT">
      <action type="SEND_KEYS">
        <keys>XF86AudioNext</keys>
      </action>
    </gesture>

Your environment

JoseExposito commented 1 year ago

It looks like Touchégg detects the configured action:

        Gesture information:
                Fingers: 4
                Type: SWIPE
                Direction: RIGHT
        Gesture performed on app: konsole
        Action configured for this gesture

Is the action executed if you configure something else? Like for example maximize or minimize a window?

Another possible problem is that the gesture didn't reached the execution threshold (from the top of my head, 10%). If you didn't installed from PPA, try to install v2.0.17 as it should solve this problem.