From f5c4e23c9c59948ca67e58794172a3f0d83575cf Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 4 Feb 2010 16:57:38 -0500 Subject: [PATCH] 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 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 1763be8b9..6e934c2df 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);