[gnome-shell/gbsneto/icon-grid-dnd: 93/96] folderIcon: Don't open popup when dragging folders
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/icon-grid-dnd: 93/96] folderIcon: Don't open popup when dragging folders
- Date: Tue, 16 Jul 2019 23:29:57 +0000 (UTC)
commit 05bc3070b44a7d7fae186649a2e661eff0a4863f
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 7668eb3c1..8786cef71 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1739,7 +1739,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]