Bug 422414

Summary: Drag and drop on Wayland: cursor jumps on the screen when mouse button is released and dragged item is dropped into wrong folder
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: view-engine: icons modeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: elvis.angelaccio, katyaberezyaka, kfm-devel, meven.car
Priority: NOR Keywords: wayland
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Patrick Silva 2020-06-03 11:55:48 UTC
STEPS TO REPRODUCE
1. start Wayland session
2. use Dolphin to open a folder containing 1 file and 2 subfolders named "folderA" and "folderB"
3. right-click on an empty area, hover over "Sort by", set sorting by name,
select "A-Z" and check "Folders first"
4. start to drag the file, position cursor in the most left position of "folderB" icon (notice that "folderA" is unexpectedly highligthed), release the mouse button (cursor jumps to "folderA"), choose "copy/move here"

OBSERVED RESULT
the dropped file is copied/moved to "folderA"

EXPECTED RESULT
the cursor should not jump to "folderA" when mouse button is releaded,
so the dropped file is copied/moved to "folderB" when we choose "copy/move here"


SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2
Comment 1 Méven Car 2020-07-10 08:43:47 UTC
Reproduced, in dolphin and gwenview (so not QGraphicScene specific)

The drop zone seems to be only covering the right half of the expected drop zone, the left half zone points to the element to the left or no element when there is none.

Seems like a Qt bug.
Comment 2 Patrick Silva 2020-10-31 14:10:24 UTC
I can't reproduce this bug on neon unstable anymore. Can anyone?
Comment 3 Méven Car 2020-11-23 09:51:00 UTC
I can't reproduce anymore either.

Seems like Qt 5.15+ or KWin 5.20+ fixed the bug.