Bug 443470 - On Wayland, dragging item from the desktop makes it temporarily disappear
Summary: On Wayland, dragging item from the desktop makes it temporarily disappear
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.4
Platform: Other Linux
: HI normal
Target Milestone: 1.0
Assignee: David Edmundson
URL: https://codereview.qt-project.org/c/q...
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-10-08 09:09 UTC by Ivan Mercep
Modified: 2022-03-03 10:26 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Mercep 2021-10-08 09:09:33 UTC
SUMMARY
Drag and drop can make files disappear from the desktop when using Wayland.

STEPS TO REPRODUCE
1. Drag and drop the .txt file to Chromium-based or Firefox browser. 
2. The file disappears from the desktop
3. Click on desktop restores the file

OBSERVED RESULT
File visually disappears on drag and drop, click returns it

EXPECTED RESULT
The file remains on the desktop after drag and drop

SOFTWARE/OS VERSIONS
Linux: 5.14.9
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Vlad Zahorodnii 2021-10-08 13:10:34 UTC
This bug is most likely going to be fixed by porting QtWayland to latest wl_seat. (I can't find the link to relevant gerrit atm)
Comment 2 Nate Graham 2021-10-08 16:15:20 UTC
Can confirm. Clicking on an empty area of the desktop makes the item appear again.
Comment 3 Méven Car 2021-12-14 16:10:33 UTC
to reproduce:

1 have a folder view with a file or folder in it
2 open an app, dolphin discover, firefox, whatever
3 drag the file in the app
4 drop the file on an application (without moving the file in case of dolphin app)

Observed:
The item in the folder view disappears.
Clicking anywhere of the desktop make the item reappear.
Hovering over the folder makes the cursor a hand as if dragging.

Expected:
The item returns in the folder view when the drop is aborted.
Comment 4 Vlad Zahorodnii 2022-01-12 16:19:52 UTC
Should be fixed with data device v3 support.
Comment 5 Marco Martin 2022-03-03 10:26:51 UTC
here seems to happen only the first time i drag something from the desktop, from the second time on, the icon shows correctly
folderview seems to hide the currently drgged icon, they instead set the drag cursor image to the icon itself (having the qml item render to pixmap), opration that seems to fail the first time?
this may either be a problem on qml side or qtwayland/kwin side as doesn't seem to happen on X