Bug 472893 - 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
Summary: Second drag of a desktop file while it remains still selected causes its thum...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
: 477175 478156 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-08-01 20:41 UTC by Nate Graham
Modified: 2023-12-15 16:42 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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