Skip to content

Commit d196734

Browse files
committed
TouchpadBackend: Fix missing reset once gesture ends
The touchpad backend wouldn't reset when the gesture ends if it didn't handle it.
1 parent 91e65ff commit d196734

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/Gestures/TouchpadBackend.vala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ private class Gala.TouchpadBackend : Object, GestureBackend {
5656
return Clutter.EVENT_PROPAGATE;
5757
}
5858

59-
if (state == IGNORED) {
60-
if (event.get_gesture_phase () == END || event.get_gesture_phase () == CANCEL) {
61-
reset ();
62-
}
59+
if (state != ONGOING && (event.get_gesture_phase () == END || event.get_gesture_phase () == CANCEL)) {
60+
reset ();
61+
return Clutter.EVENT_PROPAGATE;
62+
}
6363

64+
if (state == IGNORED) {
6465
return Clutter.EVENT_PROPAGATE;
6566
}
6667

0 commit comments

Comments
 (0)