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 1954181 - Octave GUI: Paste disabled after opening context menu
Summary: Octave GUI: Paste disabled after opening context menu
Keywords:
Status: CLOSED DUPLICATE of bug 1957503
Alias: None
Product: Fedora
Classification: Fedora
Component: octave
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-27 18:11 UTC by Otto Urpelainen
Modified: 2021-05-05 21:44 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-05 21:44:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Otto Urpelainen 2021-04-27 18:11:24 UTC
Description of problem:
On startup, clipboard contents can be pasted to Octave GUI with Ctrl-V shortcut. This stops working after editor's context menu has been opened with right mouse click, or menu from the menu bar has been opened. This happens even if the menu is closed without selecting any option, by clicking somewhere outside the menu.

Additionally, on first menu open the Paste option is selectable but does not do anything, but on subsequent menu opens it is greyed out. 

Happens only if the clipboard is populated from another source than Octave. Copying and pasting from Octave gui back to itself works as it should.

Happens only in a Wayland session, XOrg is unaffected.

Upstream bug report: https://savannah.gnu.org/bugs/index.php?60356

Version-Release number of selected component (if applicable):
5.2.0-12.fc34

How reproducible:
Always

Steps to Reproduce:
1. Copy some text to clipboard
2. Start Octave Gui
3. Paste the text with Ctrl-V, observe success
4. Open context menu, select Paste, observe nothing happens
5. Open context menu again, observe Paste is greyed out
6. Close context menu
7. Try pasting with Ctrl-V, observe nothing happens 

Actual results:
Pasting works neither with Ctrl-V nor context menu entry.

Expected results:
Pasting works as expected.

Additional info:
Since this only affects Wayland, workaround is to force Qt to X mode:

     $ QT_QPA_PLATFORM=xcb /usr/bin/octave --gui

Perhaps this could even the fix for Fedora, at least until a proper fix is available upstream, since it seems that Octave is not completely ready for Wayland yet.

Comment 1 Otto Urpelainen 2021-04-30 18:33:25 UTC
Relevant discussion on the devel mailing list:

https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/3BVLBS4B3XHJEXFVGD7RK2ZMXZG6JQZT/

Comment 2 Otto Urpelainen 2021-05-05 21:16:08 UTC
I did some more testing. This also happens for many other Qt applications in Fedora. The root cause seems to be that right click pushes an empty string to clipboard. Can be reproduced with Qt 6, so I reported this to Qt issue tracker, too:

https://bugreports.qt.io/browse/QTBUG-93474

Comment 3 Otto Urpelainen 2021-05-05 21:44:06 UTC
Reported as a general Qt 5 Wayland bug 1957503, closing as duplicate of that.

*** This bug has been marked as a duplicate of bug 1957503 ***


Note You need to log in before you can comment on or make changes to this bug.