@@ -16,7 +16,6 @@ const Signals = imports.signals;
1616const St = imports . gi . St ;
1717const Main = imports . ui . main ;
1818const Params = imports . misc . params ;
19- const EdgeFlip = imports . ui . edgeFlip ;
2019const HotCorner = imports . ui . hotCorner ;
2120const DeskletManager = imports . ui . deskletManager ;
2221const 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