GNOME Bugzilla – Bug 571654
Moving cursor replaces clipboard content
Last modified: 2009-02-16 20:42: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.
Created attachment 128850 [details] [review] proposed gtkhtml patch for gtkhtml; It used primary selection, which wasn't cleared.
Looks okay to me.
Committed to trunk. Committed revision 9142.