[gnome-shell] layout: Remove message tray pointer barrier



commit c09fcba94f4b2666336291bf59624c2f715a0f39
Author: Florian MÃllner <fmuellner gnome org>
Date:   Fri Nov 2 16:16:12 2012 +0100

    layout: Remove message tray pointer barrier
    
    The barrier was introduced to make the message tray hot corner
    usable in multiple monitor setups. With the hot corner gone in
    3.6, the pointer barrier doesn't make much sense anymore, so
    remove it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687457

 js/ui/layout.js |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 168b986..0b3aa56 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -128,8 +128,6 @@ const LayoutManager = new Lang.Class({
         this.trayBox = new St.Widget({ name: 'trayBox',
                                        layout_manager: new Clutter.BinLayout() }); 
         this.addChrome(this.trayBox);
-        this.trayBox.connect('allocation-changed',
-                             Lang.bind(this, this._updateTrayBarrier));
 
         this.keyboardBox = new St.BoxLayout({ name: 'keyboardBox',
                                               reactive: true,
@@ -280,22 +278,6 @@ const LayoutManager = new Lang.Class({
         }
     },
 
-    _updateTrayBarrier: function() {
-        let monitor = this.bottomMonitor;
-
-        if (this._trayBarrier)
-            global.destroy_pointer_barrier(this._trayBarrier);
-
-        if (Main.messageTray) {
-            this._trayBarrier =
-                global.create_pointer_barrier(monitor.x + monitor.width, monitor.y + monitor.height - Main.messageTray.actor.height,
-                                              monitor.x + monitor.width, monitor.y + monitor.height,
-                                              4 /* BarrierNegativeX */);
-        } else {
-            this._trayBarrier = 0;
-        }
-    },
-
     _monitorsChanged: function() {
         this._updateMonitors();
         this._updateBoxes();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]