Bug 442232 - On Wayland, Dolphin always sends WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY even when holding Shift
Summary: On Wayland, Dolphin always sends WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY even ...
Status: RESOLVED UPSTREAM
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-09-09 15:30 UTC by Nicolas F.
Modified: 2023-05-15 10:40 UTC (History)
4 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 Nicolas F. 2021-09-09 15:30:20 UTC
When dragging and dropping, holding shift and dropping a file should send WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE to the application. However, Dolphin always sends WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY. This breaks Shift+drop to append files to playlist on mpv.


STEPS TO REPRODUCE
1. mpv --no-config --idle --pause videohere.mp4
2. Shift+drag and drop a file from Dolphin onto mpv

OBSERVED RESULT

mpv receives a WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY event from Dolphin, which means it replaces the currently playing file.


EXPECTED RESULT

mpv receives a WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE event from Dolphin, which means it'll append the file to the playlist


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.13.13
(available in About System)
KDE Plasma Version: Plasma 5.22.5
KDE Frameworks Version: Frameworks 5.85
Qt Version: 5.15.2

Only occurs on Wayland, it's a Wayland specific problem.

Bug report on mpv's side: https://github.com/mpv-player/mpv/issues/9201
Comment 1 Méven Car 2021-10-25 13:26:35 UTC
Seems a bit related to https://bugs.kde.org/show_bug.cgi?id=423031

And upstream patch.
https://codereview.qt-project.org/c/qt/qtwayland/+/334777
Comment 2 Nicolas F. 2023-05-15 10:40:27 UTC
It's actually even more broken now despite the Qt thing being merged. Holding shift before the drag-and-drop operation no longer works either. I give up. Feel free to reopen, or don't, whatever makes you feel better, I no longer care.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.3.1-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx
Memory: 13.5 GiB of RAM
Graphics Processor: AMD Radeon Vega 10 Graphics
Manufacturer: LENOVO
Product Name: 20NK000GMZ
System Version: ThinkPad T495