Skip to content

Commit 13eb3ef

Browse files
authored
Remove the edgeFlip feature (#13581)
This has been unused for years. Go ahead and remove it.
1 parent c159ad0 commit 13eb3ef

3 files changed

Lines changed: 0 additions & 109 deletions

File tree

data/org.cinnamon.gschema.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -472,17 +472,6 @@
472472
</description>
473473
</key>
474474

475-
<key type="b" name="enable-edge-flip">
476-
<default>false</default>
477-
<summary>Whether edge flip is enabled</summary>
478-
</key>
479-
480-
<key type="i" name="edge-flip-delay">
481-
<default>1000</default>
482-
<summary>Duration of the delay before switching the workspace</summary>
483-
<description>Duration of the delay (in milliseconds)</description>
484-
</key>
485-
486475
<key type="b" name="cinnamon-settings-advanced">
487476
<default>false</default>
488477
<summary>Whether advanced mode is enabled in cinnamon-settings</summary>

js/ui/edgeFlip.js

Lines changed: 0 additions & 73 deletions
This file was deleted.

js/ui/layout.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const Signals = imports.signals;
1616
const St = imports.gi.St;
1717
const Main = imports.ui.main;
1818
const Params = imports.misc.params;
19-
const EdgeFlip = imports.ui.edgeFlip;
2019
const HotCorner = imports.ui.hotCorner;
2120
const DeskletManager = imports.ui.deskletManager;
2221
const Panel = imports.ui.panel;
@@ -277,13 +276,8 @@ LayoutManager.prototype = {
277276
this.primaryMonitor = null;
278277
this.primaryIndex = -1;
279278
this.hotCornerManager = null;
280-
this.edgeRight = null;
281-
this.edgeLeft = null;
282279
this._chrome = new Chrome(this);
283280

284-
this.enabledEdgeFlip = global.settings.get_boolean("enable-edge-flip");
285-
this.edgeFlipDelay = global.settings.get_int("edge-flip-delay");
286-
287281
this.keyboardBox = new St.Widget({ name: 'keyboardBox',
288282
layout_manager: new Clutter.BinLayout(),
289283
important: true,
@@ -298,34 +292,15 @@ LayoutManager.prototype = {
298292

299293
this._monitorsChanged();
300294

301-
global.settings.connect("changed::enable-edge-flip", Lang.bind(this, this._onEdgeFlipChanged));
302-
global.settings.connect("changed::edge-flip-delay", Lang.bind(this, this._onEdgeFlipChanged));
303295
Meta.MonitorManager.get().connect('monitors-changed', Lang.bind(this, this._monitorsChanged));
304296
},
305297

306-
_onEdgeFlipChanged: function(){
307-
this.enabledEdgeFlip = global.settings.get_boolean("enable-edge-flip");
308-
this.edgeFlipDelay = global.settings.get_int("edge-flip-delay");
309-
this.edgeRight.enabled = this.enabledEdgeFlip;
310-
this.edgeRight.delay = this.edgeFlipDelay;
311-
this.edgeLeft.enabled = this.enabledEdgeFlip;
312-
this.edgeLeft.delay = this.edgeFlipDelay;
313-
},
314-
315298
// This is called by Main after everything else is constructed;
316299
// Certain functions need to access other Main elements that do
317300
// not exist yet when the LayoutManager was constructed.
318301
init: function() {
319302
this._chrome.init();
320303

321-
this.edgeRight = new EdgeFlip.EdgeFlipper(St.Side.RIGHT, Main.wm.actionFlipWorkspaceRight);
322-
this.edgeLeft = new EdgeFlip.EdgeFlipper(St.Side.LEFT, Main.wm.actionFlipWorkspaceLeft);
323-
324-
this.edgeRight.enabled = this.enabledEdgeFlip;
325-
this.edgeRight.delay = this.edgeFlipDelay;
326-
this.edgeLeft.enabled = this.enabledEdgeFlip;
327-
this.edgeLeft.delay = this.edgeFlipDelay;
328-
329304
this.hotCornerManager = new HotCorner.HotCornerManager();
330305
},
331306

0 commit comments

Comments
 (0)