Bug 485685

Summary: Firefox starts a drag-and-drop operation when anything is in the clipboard and the application window is activated
Product: [Plasma] plasmashell Reporter: Rune P <rune>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.27.11   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rune P 2024-04-17 16:12:58 UTC
Firefox (and likely other gtk apps) starts a drag-and-drop operation when anything is in the clipboard and the application window is activated. (I.e. 


STEPS TO REPRODUCE
1. Copy some text from a terminal window or any other app than Firefox.
2. Switch to the Firefox window while on a webpage that reacts to drag events, e.g. messenger.com.

OBSERVED RESULT
The webpage will now appear to have started a drag-and-drop operation and display "drop your files here" or similar.

EXPECTED RESULT
Activating a window should not cause a drag-and-drop operation. Does not happen when the clipboard is empty.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

Fedora 39, Wayland

ADDITIONAL INFORMATION

According to https://gitlab.gnome.org/GNOME/gtk/-/issues/5519 the issue is caused by:

The problem is that plasma(klipper(ksystemclipboard)) is sending "selection" and "primary selection" every time a window is activated, which gtk detects as drag move events.
Comment 1 Rune P 2024-05-05 06:02:43 UTC
I haven't seen this issue since I upgraded to F40 (Plasma 6) a few days ago. Assuming fixed.