[gnome-shell] [dnd] Don't allow dropping on non-reactive actors



commit 88737b2083987863b9492541936bf6f836b46c89
Author: Dan Winship <danw gnome org>
Date:   Mon Jan 18 14:58:31 2010 -0500

    [dnd] Don't allow dropping on non-reactive actors

 js/ui/dnd.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 9188cad..f75bff1 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -250,7 +250,7 @@ _Draggable.prototype = {
                                                                   dropX, dropY);
         this._dragActor.show();
         while (target) {
-            if (target._delegate && target._delegate.acceptDrop) {
+            if (target.reactive && target._delegate && target._delegate.acceptDrop) {
                 let [targX, targY] = target.get_transformed_position();
                 if (target._delegate.acceptDrop(this.actor._delegate, this._dragActor,
                                                 (dropX - targX) / target.scale_x,



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