GNOME Bugzilla – Bug 695514
clipboard confusion
Last modified: 2013-08-27 13:19: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
can we take this chance to deprecate the PRIMARY as well?
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.