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 300468 - We erase clipboard when we lose the primary selection
We erase clipboard when we lose the primary selection
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-04-13 10:27 UTC by Jon Kåre Hellan
Modified: 2005-04-13 15:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jon Kåre Hellan 2005-04-13 10:27: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.
Comment 1 Jon Kåre Hellan 2005-04-13 10:34:38 UTC
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.
Comment 2 Jon Kåre Hellan 2005-04-13 15:01:44 UTC
Fixed in CVS, solution 2.