Bug 455854

Summary: Klipper creates a new entry for each character selected in Wayland
Product: [Plasma] plasmashell Reporter: cbarrabes <xarlieb>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: major CC: kde
Priority: NOR    
Version First Reported In: 5.25.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: clipboard after selecting the word "symbols"

Description cbarrabes 2022-06-23 15:35:31 UTC
Created attachment 150101 [details]
clipboard after selecting the word "symbols"

SUMMARY
Under Wayland, seems like Klipper creates a new entry in the clipboard for every character selected while dragging and selecting with the mouse.


STEPS TO REPRODUCE
1. Launch a Wayland session
2. Select any word by clicking and draggin with the mose
3. Check the clipboard history.

OBSERVED RESULT
In the history, there is a new entry for each character selected.

EXPECTED RESULT
Just like in X11, klipper should create a single entry with all the selected text.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Kernel Version: 5.18.5-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
When double-clicking to select a whole word, it works just fine.
Comment 1 David Edmundson 2022-06-23 15:50:55 UTC
Presumably this only happens in firefox? If we have this data it means it's telling us that data.

Please report there.

If you can reproduce in kwrite, please reopen
Comment 2 cbarrabes 2022-06-23 17:37:31 UTC
No(In reply to David Edmundson from comment #1)
> Presumably this only happens in firefox? If we have this data it means it's
> telling us that data.
> 
> Please report there.
> 
> If you can reproduce in kwrite, please reopen

Not sure if this post is reopening worth but just some extra info:

No, it's not only in Firefox. The screenshots attached are taken in Edge. But I also have tested in Firefox, Brave. Same behavior in all three browsers.

As for kwrite, I made several attempts and found that sometimes selections work ok and in some other cases selection copied nothing to the clipboard even though I have Klipper set to keep selection and clipboard the same.