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 571654 - Moving cursor replaces clipboard content
Moving cursor replaces clipboard content
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: Editing
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: Milan Crha
Srinivasa Ragavan
Depends on:
Blocks:
 
 
Reported: 2009-02-13 17:30 UTC by Milan Crha
Modified: 2009-02-16 20:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed gtkhtml patch (747 bytes, patch)
2009-02-16 17:55 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2009-02-13 17:30:56 UTC
Moving this from the downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=485449

Open a new mail window in Evolution.
Type some text.
Select and copy/paste small fragment of it.
Now deselect it, so that you don't have any selected text.

Select a text in any other window (I do it in konsole with mouse).

Got back to Evolution window.

If you paste (with mouse or by pressing Ctrl-V) EXACTLY on current text cursor
position, it works correctly.

But if you move cursor first using cursor keys, and then paste text, it will
paste wrong text - the old one, which you selected on step 3.


Looks like cursor movement with keyboard in Evolution somehow tricks klipper
into thinking that Evolution re-selected old selected text.
Comment 1 Milan Crha 2009-02-16 17:55:24 UTC
Created attachment 128850 [details] [review]
proposed gtkhtml patch

for gtkhtml;

It used primary selection, which wasn't cleared.
Comment 2 Matthew Barnes 2009-02-16 18:22:25 UTC
Looks okay to me.
Comment 3 Milan Crha 2009-02-16 20:42:56 UTC
Committed to trunk. Committed revision 9142.