From 24cd7af920107b2175dff38261bf0cb1bd16534d Mon Sep 17 00:00:00 2001 From: Daniel Sheeler Date: Sat, 24 Aug 2024 11:01:20 -0500 Subject: [PATCH] dash: Show move cursor on app icon dnd to dash Previously, the 'copy' drag and drop cursor was displayed when dragging an application icon to the dash (which adds the app to favorites), but the operation is really a move, so ensure the 'move' dnd cursor is used. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7819 Part-of: --- js/ui/dash.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/ui/dash.js b/js/ui/dash.js index 086bc8275..585f34063 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -935,12 +935,7 @@ export const Dash = GObject.registerClass({ if (!this._dragPlaceholder) return DND.DragMotionResult.NO_DROP; - let srcIsFavorite = favPos !== -1; - - if (srcIsFavorite) - return DND.DragMotionResult.MOVE_DROP; - - return DND.DragMotionResult.COPY_DROP; + return DND.DragMotionResult.MOVE_DROP; } // Draggable target interface