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 1758865

Summary: Wayland: X selection buffers cleared when application closed
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: gnome-shellAssignee: Florian Müllner <fmuellner>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: fmuellner, gnome-sig, jadahl, otaylor, philip.wyett, quantum.analyst, richardfearn
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: 2020-11-24 16:17:04 UTC 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:

Description Ankur Sinha (FranciscoD) 2019-10-06 12:35:03 UTC
Description of problem:
When an application is closed, the X selection buffers are cleared, but the wayland selection is persistent.

Version-Release number of selected component (if applicable):
$ rpm -qa \*gnome-shell\* \*wayland\* \*mutter\*
wayland-devel-1.17.0-2.fc31.x86_64
libwayland-server-1.17.0-2.fc31.x86_64
mutter-3.34.0-5.fc31.x86_64
libwayland-egl-1.17.0-2.fc31.x86_64
gnome-shell-3.34.0-3.fc31.x86_64
libwayland-client-1.17.0-2.fc31.x86_64
gnome-session-wayland-session-3.34.0-3.fc31.x86_64
gnome-shell-extension-background-logo-3.34.0-1.fc31.noarch
gnome-shell-extension-common-3.34.0-2.fc31.noarch
gnome-shell-extension-user-theme-3.34.0-2.fc31.noarch
gnome-shell-extension-pomodoro-0.15.2-0.1.gitcb1ad32.fc31.x86_64
qt5-qtwayland-5.12.4-7.fc31.x86_64
wayland-protocols-devel-1.18-1.fc31.noarch
chrome-gnome-shell-10.1-5.fc31.x86_64
xorg-x11-server-Xwayland-1.20.5-7.fc31.x86_64
libwayland-cursor-1.17.0-2.fc31.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Run gnome with Wayland
2. Install xsel and wl-clip to investigate the X and Wayland clipboard
contents respectively
3. Open Gedit and write some text
4. Open a terminal (tile them both for ease)
5. In gedit copy the text: highlight and right click > copy
5. In the terminal, run the following commands:
5a. xsel -o (PRIMARY X selection buffer)
5b. xsel -o -b (CLIPBOARD X selection buffer)
5c. wl-paste (wayland selection buffer)
6. Then, close gedit, and re-run these commands.



Actual results:
When gedit is running, the copied text is available to the X and wayland selection buffers.


Expected results:
Content should be available to both selection buffers even after gedit is closed?

Additional info:
I'm not sure what the right component is. Please reassign as required.

Comment 1 Elliott Sales de Andrade 2019-10-06 20:42:06 UTC
I'm pretty sure this has been the case for a while. In fact, when using xsel to set a buffer, it forks and sticks around in the background until something else replaces the buffer.

Comment 2 Ben Cotton 2020-11-03 15:37:52 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Ben Cotton 2020-11-24 16:17:04 UTC
Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.