dash: Restore icon's expected DND behavior

Commit ff3d32dd18 added a custom DashIcon subclass that disables
all DND methods from ancestors, including canceling the context
menu timeout and emitting the overview's item-drag-begin signal.

All we want is opting out of the parent's scale-and-fade behavior,
so override those methods instead.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3209
This commit is contained in:
Florian Müllner 2020-10-02 17:10:42 +02:00 committed by Georges Basile Stavracas Neto
parent daa3ddac94
commit 432c2863ab

View File

@ -31,11 +31,11 @@ class DashIcon extends AppDisplay.AppIcon {
}); });
} }
// Disable all DnD methods // Disable scale-n-fade methods used during DND by parent
_onDragBegin() { scaleAndFade() {
} }
_onDragEnd() { undoScaleAndFade() {
} }
handleDragOver() { handleDragOver() {