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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3453>
This commit is contained in:
Daniel Sheeler 2024-08-24 11:01:20 -05:00 committed by Marge Bot
parent 543ea6f889
commit 24cd7af920

View File

@ -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