Bug 493964

Summary: Pasting (CTRL-V) is not working (some times works)
Product: [Plasma] plasmashell Reporter: Eugene Savitsky <eugene.savitsky>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 6.1.90   
Target Milestone: 1.0   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eugene Savitsky 2024-10-02 12:39:23 UTC
1. Copy smth to clipboard by CTRL-C or via mouse.
2. Paste - works OK.
3. Copy a new text to clipboard.
4. Paste -> pasts the value of point nr. 1 content.
5. Open the clipboard content Super-V -> you see the value of point nr. 3, but it still is not pasted...
Comment 1 Eugene Savitsky 2024-10-02 12:39:46 UTC
Fedora 41 beta + KDE 6.1.90 (KDE 6.2 beta)
Comment 2 Nate Graham 2024-10-02 19:57:29 UTC
Some questions:
1. Is this consistently reproducible?
2. Did this only just start happening in the Plasma 6.2 beta?
3. Could you attach a screen recording or photo video that shows it happening?

Thanks!
Comment 3 Eugene Savitsky 2024-10-02 20:11:49 UTC
On a test notebook it works fine, just tried out. Will make a video from desktop.
Comment 4 Eugene Savitsky 2024-10-02 23:30:14 UTC
It took some time, but now I got the logic behind the problem. Strange thing is I cannot reproduce it on my test notebook with same Fedora 41 beta installed and updated.

On my PC:
1. Select some text & CTRL-V (or by menu on right click). Say, it is ABCDEFG
2. Press Super-V to see, that we have ABCDEFG in the clipboard
3. Paste the content to some e-mail/form/urlbar. Is is pasted OK.
4. In the same e-mail in next line write QWERTY
5. Select QWERTY and paste again, overwrite the QWERTY (as in p1 we should have ABCDEFG in the clipboard) - QWERTY is pasted
6. Press Super-V and ABCDEFG is still in the clipboard in first place

In short words selected text gets somehow copies to some unseen cache of the clipboard by pressing CTRL-V and immediately is pasted.
It is not in the clipboard (Super-V does not shows it), but still pastes from clipboard...

Video: https://disk.yandex.com/i/UKV0yx9c77gLbg
Comment 5 Eugene Savitsky 2024-10-03 11:21:48 UTC
I found the cause of it. I enabled the clipboard setting "Keep the selection and clipboard the same" to see what it is. 
Really weird feature. :-/

Closing the bug.