Skip to content

Commit

Permalink
Merge pull request #84 from kumako/switch-wks
Browse files Browse the repository at this point in the history
Fix 3.36 compatibility for workspaces actions. Fixes #81
  • Loading branch information
mpiannucci authored May 4, 2020
2 parents 77eaa8c + d32636a commit e8402c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,12 @@ const TouchpadGestureAction = new Lang.Class({
if (!versionSmaller330) {
let workspaceManager = global.workspace_manager;
let activeWorkspace = workspaceManager.get_active_workspace();
let newWs = activeWorkspace.get_neighbor(dir);
Main.wm._prepareWorkspaceSwitch(activeWorkspace.index(), -1);
Main.wm.actionMoveWorkspace(newWs);
} else {
Main.wm._actionSwitchWorkspace(sender, dir);
}
Main.wm._actionSwitchWorkspace(sender, dir);
},

_sendKeyEvent: function (...keys) {
Expand Down

0 comments on commit e8402c1

Please sign in to comment.