nik012003 / ripdrag

Drag and Drop utilty written in Rust and GTK4
GNU General Public License v3.0
496 stars 17 forks source link

Drag&drop doesnt work on sway #43

Open HappyCthulhu opened 5 months ago

HappyCthulhu commented 5 months ago

Hello. I switched to sway few weeks ago. Im in love with CLI-tools, that allow me to drag&drop from CLI, but im expiriencing troobles with that on Wayland. Drag window shows up, but i cant drop anything. Sometimes i can, sometimes - cant. Can u suggest some solution for me? Or, at least, tell me, how to debug it properly.

Also, your app gives me error:

(ripdrag:72048): Gdk-WARNING **: 13:40:05.111: Compositor doesn't support moving popups, relying on remapping

If this error is related to my bug - how can i enable moving popups? Is that even possible?

Demonstration: https://github.com/nik012003/ripdrag/assets/23531195/d8e614ec-f707-4cdb-9d6f-4b493b3e0f98

nik012003 commented 5 months ago

Hi, thanks for the report. I'm unable to reproduce the behaviour on sway 1.8.1 on fedora linux 39. (I do get the warning message, but everything works fine anyway) Can you tell me the exact version of sway you are using and the distro you are running it on? Also, are you running firefox on Xwayland or wayland? You can check in about:support under "Window Protocol". And does it always work with -a like you showed in the video? In that case I can probably solve it by always sending a vector of files, even for a single file, but I don't know exactly if that's a good idea.