GNOME Bugzilla – Bug 300468
We erase clipboard when we lose the primary selection
Last modified: 2005-04-13 15:01:44 UTC
Copy a range to clipboard. Mark a word in a terminal. Try to paste the range into e.g. abiword. This doesn't work.
When we copy to clipboard, we claim both PRIMARY and CLIPBOARD selection. When we lose either, x_clipboard_clear_cb is invoked and clears the clipboard. There seems to be no functional reason to clear the clipboard, but we release some memory which we otherwise would hang on to until next time we claim the clipboard. There are three things we could do: 1) Keep track of which of the two selections we currently own. 2) Clear clipboard when we lose the CLIPBOARD selection. This disregards the uncommon case when we lose CLIPBOARD but keep PRIMARY. Is this even possible? 3) Not clear the clipboard at all when we lose a selection.
Fixed in CVS, solution 2.