[gnome-shell/wip/workspace: 137/143] workspacesView: Don't do any special handling for item-dragging



commit 1a3f4815371177f46ba8217aa33f3cef53b387a9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Sep 11 14:21:29 2013 -0400

    workspacesView: Don't do any special handling for item-dragging
    
    The code here really only cares about new windows.

 js/ui/workspacesView.js |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 085d162..90dce1a 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -91,10 +91,6 @@ const WorkspacesView = new Lang.Class({
             global.window_manager.connect('switch-workspace',
                                           Lang.bind(this, this._activeWorkspaceChanged));
 
-        this._itemDragBeginId = Main.overview.connect('item-drag-begin',
-                                                      Lang.bind(this, this._dragBegin));
-        this._itemDragEndId = Main.overview.connect('item-drag-end',
-                                                     Lang.bind(this, this._dragEnd));
         this._windowDragBeginId = Main.overview.connect('window-drag-begin',
                                                         Lang.bind(this, this._dragBegin));
         this._windowDragEndId = Main.overview.connect('window-drag-end',
@@ -288,14 +284,6 @@ const WorkspacesView = new Lang.Class({
         if (this._inDrag)
             this._dragEnd();
 
-        if (this._itemDragBeginId > 0) {
-            Main.overview.disconnect(this._itemDragBeginId);
-            this._itemDragBeginId = 0;
-        }
-        if (this._itemDragEndId > 0) {
-            Main.overview.disconnect(this._itemDragEndId);
-            this._itemDragEndId = 0;
-        }
         if (this._windowDragBeginId > 0) {
             Main.overview.disconnect(this._windowDragBeginId);
             this._windowDragBeginId = 0;


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