After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 695514 - clipboard confusion
clipboard confusion
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Wayland
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-03-09 17:47 UTC by Matthias Clasen
Modified: 2013-08-27 13:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2013-03-09 17:47:19 UTC
I've noticed that Wayland only supports a single selection. GTK+ uses two selections, CLIPBOARD and PRIMARY. The problem with the wayland implementation is that it totally ignores clipboard names with the result that CLIPBOARD and PRIMARY interfere with each other.

Try this:

1) open the clipboard example in gtk-demo
2) enter 'abc' into the first entry
3) click Copy (now the CLIPBOARD selection contains 'abc'
4) replace the contents of the entry with 'uvw'
5) select this text ( now the PRIMARY selection 'uvw')
6) click Paste
7) expect the second entry to be filled with the CLIPBOARD selection, but it reads 'uvw', which is the PRIMARY
Comment 1 Emmanuele Bassi (:ebassi) 2013-03-09 19:19:53 UTC
can we take this chance to deprecate the PRIMARY as well?
Comment 2 Rob Bradford 2013-08-27 13:19:19 UTC
I believe Kristian fixed this with: 

commit 8e8951df72068dc68d62aa3c3b07237447bd01ed
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Fri Aug 23 23:10:22 2013 -0700

    wayland: Only set wayland selection for GDK_SELECTION_CLIPBOARD
    
    Wayland only has one selection, which corresponds to GDK_SELECTION_CLIPBOARD.