appDisplay: Return false in acceptDrop when not accepting the drop

Fix what is probably a copy-paste error and return false instead of a
CONTINUE DragMotionResult which is only meant for dragMotion events, not
drop events. This makes sure we don't create a folder when dropping an
app over the drag leeways of another icon.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1389
This commit is contained in:
Jonas Dreßler 2020-08-03 21:47:42 +02:00 committed by Florian Müllner
parent d0dab5a6d1
commit b83c93ad62

View File

@ -1541,7 +1541,7 @@ class AppViewItem extends St.Button {
return false; return false;
if (this._withinLeeways(x)) if (this._withinLeeways(x))
return DND.DragMotionResult.CONTINUE; return false;
return true; return true;
} }