Bug 472893

Summary: Second drag of a desktop file while it remains still selected causes its thumbnail to jump back to the position it had before the first drag
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: Desktop icons & Folder View widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: bugseforuns, eric1, hein, katze_942, qydwhotmail
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2023-08-01 20:41:40 UTC
STEPS TO REPRODUCE
1. Have or put some files on your desktop
2. Reboot
3. Drag one of the desktop files to a different location
4. Immediately drag it again, to somewhere else


OBSERVED RESULT
On the second drag, the thumbnail of the file being dragged snaps back to its location after step 2! 


EXPECTED RESULT
The thumbnail of the file being dragged stays glued to the pointer
Comment 1 Nate Graham 2023-08-09 17:55:30 UTC
Can you reproduce this, Patrick?
Comment 2 Patrick Silva 2023-08-09 17:59:13 UTC
yes
Comment 3 Nate Graham 2023-08-09 18:04:34 UTC
Thanks. For future reference, feel free to mark as CONFIRMED the issues you can confirm.
Comment 4 Fushan Wen 2023-11-26 10:27:13 UTC
*** Bug 477175 has been marked as a duplicate of this bug. ***
Comment 5 Patrick Silva 2023-12-06 15:51:11 UTC
*** Bug 478156 has been marked as a duplicate of this bug. ***
Comment 6 Bug Janitor Service 2023-12-15 12:04:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1931
Comment 7 Nate Graham 2023-12-15 16:42:37 UTC
Git commit ff26f166bf2df398270456770f6c7ae0862f01de by Nate Graham, on behalf of Marco Martin.
Committed on 15/12/2023 at 17:35.
Pushed by ngraham into branch 'master'.

Fix the drag image offset

When a drop happens, a new item is created, and is set to selected
grabToImagebefore it gets the final width, making grabToImage fail because it's still 0x0

M  +4    -1    containments/desktop/package/contents/ui/FolderItemDelegate.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/ff26f166bf2df398270456770f6c7ae0862f01de