Bug 439945

Summary: I would love these Netbeans Clipboard behaviors on Klipper
Product: [Plasma] plasmashell Reporter: nulll <luca.battarra>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: alex, kde, kishore96
Priority: NOR    
Version First Reported In: 5.18.5   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description nulll 2021-07-16 12:31:28 UTC
It would be great for Klipper to have some of the functionalities / behaviors of the Netbeans Clipboard window.

I have created a couple of videos to better explain what I mean.

1. with Netbeans when I select an entry, it is automatically pasted. With Klipper when I select an entry, I must paste it manually (Ctrl + V).
I fill this as an extra-step that coul'd be removed... 

https://drive.google.com/file/d/1ZbH_rjSfpvr8P7vaJK8E-wnwz7SyceKT/view?usp=sharing

2. with Netbeans I can select an entry selecting his index number (1,2,3,4...)

https://drive.google.com/file/d/1mkJiQvIGvlzgfJzatKlAhGmXseHL_omh/view?usp=sharing

3.in Netbeans the clipboard window opens where the keyboard caret is, in Klipper the window opens wehre the mouse cursor is, I find this "unexpected". 

https://drive.google.com/file/d/1XZtjFm-P_NcIfHr0bMIpSIjjzqCQOs10/view?usp=sharing

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.8.0-59-generic
Comment 1 Alex 2022-02-17 09:39:16 UTC
As a netbeans user I agree with these suggestions!

They would be very useful.
Comment 2 David Edmundson 2022-02-17 09:57:50 UTC
Please don't put multiple things in a bug report. 

1. with Netbeans when I select an entry, it is automatically pasted. 

We can't reliably do this on X11. The client requests the clipboard contents. We cannot reliably tell the client to request things.

>3.in Netbeans the clipboard window opens where the keyboard caret is,

We don't know where the keyboard caret is because it's in another process.

---

There is a caveat to all of these. Under wayland, klipper can use the virtual keyboard interface to potentially get this information.
This is something we will revisit later.
Comment 3 Alex 2022-02-17 10:00:39 UTC
> We can't reliably do this on X11. The client requests the clipboard contents. We cannot reliably tell the client to request things.

Does wayland help in this context?