[gnome-shell/gbsneto/icon-grid-dnd: 7/10] folderIcon: Don't open popup when dragging folders



commit 31bbdae796744b93b26bc6d7787e55bc39c80c7e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Jul 5 12:38:03 2019 -0300

    folderIcon: Don't open popup when dragging folders
    
    We can't add folders to folders, so prevent opening the folder
    popup in the case we're dragging a folder.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

 js/ui/appDisplay.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index d666d9d9a..7fc09935e 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1740,7 +1740,8 @@ var FolderIcon = class FolderIcon extends BaseViewIcon {
     }
 
     handleDragOver(source, actor, x, y, time) {
-        this._scheduleOpenPopup();
+        if (!(source instanceof FolderIcon))
+            this._scheduleOpenPopup();
 
         if (!this._canDropAt(source))
             return DND.DragMotionResult.NO_DROP;


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