[gnome-shell] Fix drag point for application icons



commit f5c4e23c9c59948ca67e58794172a3f0d83575cf
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Feb 4 16:57:38 2010 -0500

    Fix drag point for application icons
    
    We need to return the "thing that is being dragged" from
    getDragActorSource() so that dnd.js can figure out the right
    relationship between the dragged object and cursor.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=607351

 js/ui/appDisplay.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 1763be8..6e934c2 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -504,10 +504,10 @@ AppWellIcon.prototype = {
         return this.app.create_icon_texture(APPICON_SIZE);
     },
 
-    // Returns the original icon that is being used as a source for the cloned texture
-    // that represents the item as it is being dragged.
+    // Returns the original actor that should align with the actor
+    // we show as the item is being dragged.
     getDragActorSource: function() {
-        return this.actor;
+        return this._icon.icon;
     }
 }
 Signals.addSignalMethods(AppWellIcon.prototype);



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