viewSelector: Drop edge drag gesture
It doesn't use any ViewSelector's API anymore, and its functionality will be taken over by the 3 finger gesture. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
This commit is contained in:
parent
80d258b20f
commit
cbe0180f47
@ -12,7 +12,6 @@ const ShellEntry = imports.ui.shellEntry;
|
|||||||
const Util = imports.misc.util;
|
const Util = imports.misc.util;
|
||||||
const WorkspaceThumbnail = imports.ui.workspaceThumbnail;
|
const WorkspaceThumbnail = imports.ui.workspaceThumbnail;
|
||||||
const WorkspacesView = imports.ui.workspacesView;
|
const WorkspacesView = imports.ui.workspacesView;
|
||||||
const EdgeDragAction = imports.ui.edgeDragAction;
|
|
||||||
|
|
||||||
const SHELL_KEYBINDINGS_SCHEMA = 'org.gnome.shell.keybindings';
|
const SHELL_KEYBINDINGS_SCHEMA = 'org.gnome.shell.keybindings';
|
||||||
var PINCH_GESTURE_THRESHOLD = 0.7;
|
var PINCH_GESTURE_THRESHOLD = 0.7;
|
||||||
@ -351,22 +350,7 @@ var ViewSelector = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let side;
|
let gesture = new ShowOverviewAction();
|
||||||
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
|
|
||||||
side = St.Side.RIGHT;
|
|
||||||
else
|
|
||||||
side = St.Side.LEFT;
|
|
||||||
let gesture = new EdgeDragAction.EdgeDragAction(side,
|
|
||||||
Shell.ActionMode.NORMAL);
|
|
||||||
gesture.connect('activated', () => {
|
|
||||||
if (Main.overview.visible)
|
|
||||||
Main.overview.hide();
|
|
||||||
else
|
|
||||||
Main.overview.show(ControlsState.APP_GRID);
|
|
||||||
});
|
|
||||||
global.stage.add_action(gesture);
|
|
||||||
|
|
||||||
gesture = new ShowOverviewAction();
|
|
||||||
gesture.connect('activated', this._pinchGestureActivated.bind(this));
|
gesture.connect('activated', this._pinchGestureActivated.bind(this));
|
||||||
global.stage.add_action(gesture);
|
global.stage.add_action(gesture);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user