Bug 448867 - Cannot drag-and-drop images to Desktop from Firefox unless you wait 1 or more seconds before dropping
Summary: Cannot drag-and-drop images to Desktop from Firefox unless you wait 1 or more...
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop Containment (show other bugs)
Version: 5.23.90
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords: wayland
: 417649 458238 473146 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-21 05:27 UTC by saxn
Modified: 2023-11-27 02:48 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Cannoy drag and drop on wayland. Works on X11. (581.21 KB, video/mp4)
2022-11-14 12:35 UTC, jakubby
Details
I hope I gotten this right? I just get the desktop to freeze, doesn't really work. 5.26.3 (3.32 MB, video/mp4)
2022-11-14 19:52 UTC, jakubby
Details

Note You need to log in before you can comment on or make changes to this bug.
Description saxn 2022-01-21 05:27:46 UTC
SUMMARY
This action works in X11 but not in wayland.
If we drag image to dolphin then it works but not in desktop.

STEPS TO REPRODUCE
1. Open firefox 
2. go to wallheaven.cc click an image
3. Drag images to desktop

OBSERVED RESULT
Cursor shows dragging is happening

EXPECTED RESULT
But the context menu dosn't show to whether to copy/move/cancel the operation. Nor the images is copied to desktop

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE NEON TESTING
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Comment 1 Nate Graham 2022-01-23 19:02:06 UTC
Can reproduce. Probably not a KWin issue; moving to Plasmashell.
Comment 2 saxn 2022-05-20 10:20:27 UTC
(In reply to Nate Graham from comment #1)
> Can reproduce. Probably not a KWin issue; moving to Plasmashell.

Problem still persists in plasma 5.24.90 from neon unstable branch.
Comment 3 Patrick Silva 2022-05-20 10:56:53 UTC
Same problem with Opera browser.

1. load the following wallpaper with Opera: https://wallpapercave.com/wp/wp2567098.jpg
2. try to drag and drop it on desktop

Result: if Opera is running on Xwayland, nothing happens. If Opera is running natively on Wayland, a Stick Note with wallpaper URL is created on desktop. lol
Comment 4 jakubby 2022-11-14 12:35:20 UTC
Created attachment 153735 [details]
Cannoy drag and drop on wayland. Works on X11.
Comment 5 Nate Graham 2022-11-14 19:45:13 UTC
Found a workaround: while dragging the image over the desktop, drag it over an existing desktop icon, then over an empty area again and then drop it. This works and I get the normal drop menu.

Does that work for anyone else?
Comment 6 jakubby 2022-11-14 19:52:18 UTC
Created attachment 153745 [details]
I hope I gotten this right? I just get the desktop to freeze, doesn't really work. 5.26.3
Comment 7 Patrick Silva 2022-11-14 19:56:19 UTC
On my Arch Linux Plasma hangs for a few seconds if Firefox is running on Xwayland, and the workaround works if Firefox is running natively on Wayland.

Operating System: Arch Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Graphics Platform: Wayland
Comment 8 Nate Graham 2022-11-15 17:44:24 UTC
> the workaround works if Firefox is running natively on Wayland.
Yeah I have Firefox running in its native Wayland mode. I guess it doesn't work if Firefox is in XWayland mode, darn.
Comment 9 guimarcalsilva 2022-11-16 18:27:31 UTC
This bug is not specific to Firefox. On Vivaldi (a Chromium Browser), dragging to the desktop or Dolphin doesn't work at all in XWayland. If the browser is run natively on Wayland, dragging an image to the desktop creates a sticky note with the link to the image and dragging an image to Dolphin has no effect.
Comment 10 Patrick Silva 2022-11-16 18:37:27 UTC
(In reply to guimarcalsilva from comment #9)
> If the browser is run natively on Wayland, dragging an image to the desktop creates
> a sticky note with the link to the image and dragging an image to Dolphin
> has no effect.

Reported as bug 449645
Comment 11 Nate Graham 2023-04-09 22:47:13 UTC
*** Bug 458238 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2023-04-09 22:47:56 UTC
Workaround: drag to desktop, wait 1 or more seconds, *then* release the mouse to drop.
Comment 13 Nate Graham 2023-04-09 22:48:30 UTC
*** Bug 417649 has been marked as a duplicate of this bug. ***
Comment 14 nf.pereira 2023-04-11 14:24:56 UTC
A very similar thing happens to me but in the opposite direction when running Firefox in native Wayland mode.
When I drag a picture from Dolphin to a website that has a file drop zone, it only works if I hold the cursor still over the drop zone for over 1 or 2 seconds. If I let go of the click too early, nothing happens.

This could be a different bug, but it seems similar enough that it might also be the same as this.
Comment 15 Patrick Silva 2023-08-08 17:19:55 UTC
*** Bug 473146 has been marked as a duplicate of this bug. ***
Comment 16 w202mg 2023-08-09 08:20:02 UTC
Still persists after over 1,5 years :(
Comment 17 Kai Uwe Broulik 2023-11-13 16:45:53 UTC
Potential fix https://codereview.qt-project.org/c/qt/qtwayland/+/518019
Comment 18 nf.pereira 2023-11-15 10:22:05 UTC
(In reply to Kai Uwe Broulik from comment #17)
> Potential fix https://codereview.qt-project.org/c/qt/qtwayland/+/518019

Has anyone tested this?