Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/WindowManager.vala b/src/WindowManager.vala
- index ce2950e..817b307 100644
- --- a/src/WindowManager.vala
- +++ b/src/WindowManager.vala
- @@ -159,6 +159,28 @@ namespace Gala
- WorkspaceManager.init (this);
- + var switch_action = new Clutter.SwipeAction();
- + switch_action.n_touch_points = 3;
- + switch_action.set_threshold_trigger_distance(50, 50);
- + switch_action.swipe.connect((actor, direction) => {
- + switch (direction) {
- + case Clutter.SwipeDirection.LEFT:
- + switch_to_next_workspace(MotionDirection.LEFT);
- + return true;
- + case Clutter.SwipeDirection.RIGHT:
- + switch_to_next_workspace(MotionDirection.RIGHT);
- + return true;
- + case Clutter.SwipeDirection.UP:
- + workspace_view.open();
- + return true;
- + case Clutter.SwipeDirection.DOWN:
- + workspace_view.close();
- + return true;
- + }
- + return false;
- + });
- + stage.add_action(switch_action);
- +
- /* our layer structure, copied from gnome-shell (from bottom to top):
- * stage
- * + system background
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement