Page 1 of 1

1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Tue Mar 28, 2023 11:38 am
by bemymonkey
Subject: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

XnView: Version 1.4.3 64bits (Feb 26 2023) - installed from .deb file https://download.xnview.com/XnViewMP-linux-x64.deb
OS: Ubuntu 22.04 LTS running Wayland

I'm unable to drag and drop files from XNView into other programs. My main use for this is attaching files to e-mail or instant messages in browser windows (Gmail, Whatsapp, Slack). Also doesn't work for moving files to file browser windows (Nautilus)

Effect: Nothing happens at all

To reproduce:
1. Open XnViewMP
2. Open second application (such as a Nautilus window)
3. Drag an image file into the second application

Actual behaviour (bug): Nothing happens. Wayland isolates applications much more strongly than the previous X11 system, so I'm assuming the file isn't being passed between applications properly.

Expected behaviour: File is moved to the folder open in the file explorer (Nautilus) or inserted in the chat/e-mail window. IIRC this worked as expected if X was used rather than Wayland.

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Mon May 01, 2023 3:56 pm
by bemymonkey
Just updated to 1.4.4. Still no change unfortunately.

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 03, 2023 7:52 am
by xnview
it seems that it's a QT problem

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 03, 2023 12:13 pm
by bemymonkey
Thanks for your reply!

Does that mean we simply need to wait until QT support for Wayland improves?

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 03, 2023 2:08 pm
by xnview
yes

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 03, 2023 2:09 pm
by bemymonkey
Thanks for the info, I will see if I can stick with X.org rather than Wayland for now.

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 31, 2023 6:04 am
by zenden
Drag n drop to Firefox window on Wayland is working.

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 31, 2023 6:33 am
by bemymonkey
Awesome, was there an update to QT? Which version of which distro are you running?

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 31, 2023 9:09 am
by zenden
It works with Firefox and Chromium only. Not working with LibreOffice writer.
The problem still exists. Tested on Ubuntu 22.04

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 31, 2023 10:33 am
by zenden
bemymonkey wrote: Wed May 31, 2023 6:33 am Awesome, was there an update to QT? Which version of which distro are you running?
Installed Qt version doesn't matter because XnView MP is statically linked with Qt 5.

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Wed May 31, 2023 2:20 pm
by zenden
I just tried the latest XnView MP on Ubuntu 23.04 (64 bit).

Dragging from XnView MP to Gnome file manager causes causes Gnome shell to crash.

Also XnView MP is not working at all on KDE plasma with Wayland.
Just hangs at startup. See log: https://pastebin.com/QLdfNHFk

Maybe it's not XnVIew's fault, but linux desktop environment's and Wayland.

Re: 1.4.3 64bit - Drag & Drop to other applications not working on Wayland

Posted: Thu Jul 27, 2023 7:58 pm
by bemymonkey
Just a heads up: XnViewMP as a Flatpak allows drag & drop under Wayland without issue on Debian 12.