Drag and drop uses clipboard instead #11179
Replies: 6 comments 1 reply
|
I have the same issue when dropping on xwayland windows. It seems to come from calling
Locally it seems to work fine (including copy/paste) if I remove the call to |
|
Same issue here. Dragging 5 MIDI files from Nautilus (native Wayland) to VLC playlist (XWayland) drops clipboard content instead (a folder I had previously copied). After clearing clipboard with
|
|
This issue is present weirdly enough on Wayland to Wayland as well. I was building a QT app running on wayland and dragging from thunar (on wayland native ) to QT ( also running on wayland ) showed similar behavior |
Still reproducible on 0.56.2 — with a controlled measurement isolating it to the XWayland pathConfirming this is still present in Hyprland 0.56.2, and adding a measurement that pins it down. System Method. I ran two instances of the same GTK3 drop probe simultaneously, differing only in Result — XWayland instance: Result — native Wayland instance, same drag: The bytes delivered to the XWayland client were byte-for-byte the Workaround confirmed. Possible mechanism (not verified — offered as a lead). In if (std::ranges::find(MIMES, mime) == MIMES.end()) {
// try to guess mime ...
auto needle = mime;
if (mime.contains('/')) needle = mime.substr(0, mime.find('/'));
Real-world impact. Any XWayland client that treats the dropped payload as file paths gets The probe script is short and self-contained; happy to attach it if useful for regression testing. |
|
Hi folks when drag and drop songs to VLC it takes the one (or the file) stored in clipboard, not which I'm dragging :-/ cheers and thanks to share |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Drag and drop in general is very inconsistent but lately I noticed if I ever copied anything to my clipboard, dragging and dropping anything to gimp/mpv(forced x11, if mpv runs in wayland drag and drop doesn't work)/davinci resolve will instead "drag and drop" whatever is in the clipboard. It behaves completely normally after a reboot if I don't copy anything to my clipboard. Sorry if there's a similar thread to this, I checked but couldn't find anything.
All reactions