Bug 433168 - [Wayland] Drag & drop from Dolphin to WINE application doesn't work
Summary: [Wayland] Drag & drop from Dolphin to WINE application doesn't work
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.21.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-18 13:38 UTC by David Warner
Modified: 2023-09-06 10:38 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Dolphin and foobar2000 screenshot (54.56 KB, image/png)
2021-02-18 13:38 UTC, David Warner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Warner 2021-02-18 13:38:13 UTC
Created attachment 135848 [details]
Dolphin and foobar2000 screenshot

SUMMARY
Dragging a file from Dolphin to a WINE application (e.g. foobar2000) doesn't work in Wayland. X11 works.

STEPS TO REPRODUCE
1. Drag an audio file from Dolphin to foobar2000

OBSERVED RESULT
foobar2000's 'drop' indicator line appears as usual, but the error cursor appears, and the drag & drop operation doesn't work.

EXPECTED RESULT
The drag & drop operation works and the file appears in the foobar2000 playlist.

SOFTWARE/OS VERSIONS
Fedora 33
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 David Warner 2021-02-21 04:01:58 UTC
On further reflection, this might be an upstream bug - https://www.collabora.com/news-and-blog/news-and-events/wayland-on-wine-an-exciting-first-update.html
Comment 2 Leonard Lausen 2021-02-27 01:47:42 UTC
Are you using the https://gitlab.collabora.com/alf/wine/ wayland wine build? Or are you using stable wine with xwayland?
Comment 3 David Warner 2021-02-27 02:11:02 UTC
I'm using stable WINE with XWayland.
Comment 4 David Warner 2021-02-27 02:21:35 UTC
(Sorry, I think I muddied the waters by referencing that Collabora build - seems like this is a separate issue.)
Comment 5 Leonard Lausen 2021-02-27 03:49:59 UTC
I think it's valid to mention the Wayland build in this issue. In fact you can try compiling it from source. In my experience, it works well for some applications but there were KDE specific bugs for others.

However, I also noted KDE specific bugs with Xwayland Wine, so it's possible that the drag&drop bug you report here is also KDE specific.

Have you tried if the Xwayland drag&drop works on Gnome Wayland session or Weston?
Comment 6 Leonard Lausen 2021-03-12 00:40:06 UTC
FYI, Alexandros fixed the KDE related bugs in the wine wayland branch and since March 4 2021 it works well (and much better than the XWayland version). The only caveat is that at this point Wine applications will always use en-us keyboard layout, but that will be fixed later.

To install:

mkdir -p ~/src/
cd ~/src
git clone -b wayland https://gitlab.collabora.com/alf/wine/
./configure --with-wayland
make -j$(nproc)

To use:

WINEARCH="win32" DISPLAY= WAYLAND_DISPLAY=wayland-0 WINEPREFIX=~/.wine_wayland ~/src/wine/wine program.exe
Comment 7 Nate Graham 2021-03-12 04:18:43 UTC
Cool, so does that mean this bug is fixed now?
Comment 8 Leonard Lausen 2021-03-12 13:19:15 UTC
As this bug is about Wine + XWayland, it's not fixed by the Wine Wayland version.

Also I don't think it's clear if the XWayland issue reported here is a upstream bug or kwin bug.

Compiling Wine Wayland branch can be used as a workaround. I wouldn't bother with the Xwayland issue as the workaround should in due time become part of stable Wine release. But others may feel different and may want to fix the Xwayland issue.
Comment 9 Bug Janitor Service 2021-03-27 04:33:35 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Vlad Zahorodnii 2021-04-01 07:34:13 UTC
Setting bug status to reported.
Comment 11 David Edmundson 2023-09-06 10:38:11 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.