Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1957503

Summary: Right click empties the clipboard on Qt 5 applications
Product: [Fedora] Fedora Reporter: Otto Urpelainen <oturpe>
Component: qt5-qtwaylandAssignee: Lubomir Rintel <lkundrak>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: jgrulich, jreznik, kde-sig, lkundrak, pierluigi.fiorini, rdieter, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1965576    

Description Otto Urpelainen 2021-05-05 21:41:39 UTC
Description of problem:

When using Gnome on Wayland, right click empties the clipboard. Only happens when the clipboard was filled from different application than the target.

The clipboard still has its original content visible for other applications, and can be made work again for the Qt application as well by moving it out of focus and back in.
Version-Release number of selected component (if applicable):

How reproducible:

Always on Octave, KeePassXC and an artificial minimal reproducer

Steps to Reproduce:
1. Open a Qt 5 application, for example Octave
2. Copy some text to clipboard from another application
3. Paste it to the Qt 5 application with Ctrl-V, observe success
4. Right click on the Qt 5 application
5. Attempt Ctrl-V paste again

Actual results:
Nothing happens

Expected results:
Copied text is pasted to the Qt 5 application

Additional info:
Report in Qt tracker: https://bugreports.qt.io/browse/QTBUG-93474
Minimal reproducer: https://gitlab.com/Urpelainen/qt-clipboard-rightclick-reproducer

Comment 1 Otto Urpelainen 2021-05-05 21:44:06 UTC
*** Bug 1954181 has been marked as a duplicate of this bug. ***