Bug 255777 - copy and paste broken
Summary: copy and paste broken
Status: RESOLVED INTENTIONAL
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-31 23:28 UTC by obi.tomkenobi
Modified: 2011-05-25 21:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description obi.tomkenobi 2010-10-31 23:28:34 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

When I try to copy text by highlighting within in any program then selecting some other text within that program or any other, then select text to be repalced with paste command it will not work.  just copies text ......??????

Tried this in Kate, terminal and all others!!!!!

Reproducible: Always


Actual Results:  
test text

this is copied texy 

resultse

test text

this is copied texy 

results  this is copied texy

Expected Results:  
copy highlight paste  would not copy newly selected text but paste over it
Comment 1 Martin Steigerwald 2011-04-30 10:07:53 UTC
I can confirm this. Reproducable as follows:

- open kwrite
- write a line like "This is a nice line of text"
- select that line text with the mouse
- select some text in another window
- position the mouse above the text in the kwrite window
- click middle mouse button to paste

Actual results:

The copied text is inserted into the existing text in kwrite.

Expected results:

The copied text *replaces* the existing text in kwrite.

I think I have seen this in KDE 4.5 in krunner already, now using KDE 4.6.2 with Qt 4.7.2 in Debian wheezy/sid/experimental.
Comment 2 Martin Steigerwald 2011-04-30 10:42:16 UTC
BTW the first time I tried this in KWrite the screen just went black and Ctrl-Alt-Backspaced my X session to get back to a working KDE session. Hmmm, I forgot to try Alt-F2 "killall plasma-desktop", Alt-F2 "plasma-desktop" first. When this happens again I will open a new bug report for it.
Comment 3 Martin Steigerwald 2011-04-30 10:46:23 UTC
Hmmm, maybe this had been rsibreak without just a black screen to remember me to pause bug reporting for a while.
Comment 4 Dawit Alemayehu 2011-05-25 21:22:46 UTC
This is not a bug. It is the time honored behavior of X Windows. Perhaps neither one of you is aware of the fact that X has a separate concept of selection and clipboard. 

The concept of selection and copy are not the same. For selection, whenever you make a new selection it will overwrite the previous one. Period. If you do not want your second selection to overwrite the first one, then you must actually copy the first selection using CTRL+C or clicking on RMB (Right-Mouse-Button) and selecting Copy from the context menu. Then you can make a second selection and paste.