Bug 1758865 - Wayland: X selection buffers cleared when application closed
Summary: Wayland: X selection buffers cleared when application closed
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-shell
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Müllner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-06 12:35 UTC by Ankur Sinha (FranciscoD)
Modified: 2019-10-06 20:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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.


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