[gnome-shell] dash: Restore icon's expected DND behavior
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dash: Restore icon's expected DND behavior
- Date: Fri, 2 Oct 2020 15:45:06 +0000 (UTC)
commit 432c2863abcc754cbaf84b26b27cc08cb7f335c4
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Oct 2 17:10:42 2020 +0200
dash: Restore icon's expected DND behavior
Commit ff3d32dd186fa 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
js/ui/dash.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index dbddd996f7..7e4457e5ef 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -31,11 +31,11 @@ class DashIcon extends AppDisplay.AppIcon {
});
}
- // Disable all DnD methods
- _onDragBegin() {
+ // Disable scale-n-fade methods used during DND by parent
+ scaleAndFade() {
}
- _onDragEnd() {
+ undoScaleAndFade() {
}
handleDragOver() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]