windowManager: Update API call
This function has now a more generic name, so it caters for both swipe and pinch touchpad gestures. https://bugzilla.gnome.org/show_bug.cgi?id=765937
This commit is contained in:
parent
900957d658
commit
7e5274619a
@ -511,7 +511,7 @@ const TouchpadWorkspaceSwitchAction = new Lang.Class({
|
|||||||
if (event.type() != Clutter.EventType.TOUCHPAD_SWIPE)
|
if (event.type() != Clutter.EventType.TOUCHPAD_SWIPE)
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
|
||||||
if (event.get_gesture_swipe_finger_count() != 4)
|
if (event.get_touchpad_gesture_finger_count() != 4)
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
|
||||||
if (event.get_gesture_phase() == Clutter.TouchpadGesturePhase.UPDATE) {
|
if (event.get_gesture_phase() == Clutter.TouchpadGesturePhase.UPDATE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user