Bug 378969

Summary: Clipboard "focus" is lost after source window is closed
Product: [Unmaintained] klipper Reporter: retired <pepko94>
Component: plasma-widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate
Priority: NOR    
Version: 5.9.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: demonstration

Description retired 2017-04-19 16:31:29 UTC
Say, I have firefox window open, If I decide to ctrl+c something from that window then it will mostly work alright.

Problems start if I close firefox before pasting, most recently copied contents will not paste, context menu will be greyed out.

What's more interesting is that clicking on such item in klipper does nothing, I need to select other item from list and then back to what I wanted.

Tested on both Plasma X11 and Wayland. If it's a "security" feature then please consider third paragraph to be my bug report.

5.9.4 Frameworks 5.33
Comment 1 retired 2017-06-01 19:40:13 UTC

*** This bug has been marked as a duplicate of bug 292236 ***
Comment 2 retired 2019-06-02 12:35:55 UTC
Created attachment 120499 [details]
demonstration

Turns out it probably wasn't a duplicate.
Reopening with recorded demonstration.
Comment 3 Nate Graham 2021-04-01 19:57:45 UTC
This is what happens when you disable or uninstall Klipper (the clipboard system tray applet). Have you done so?
Comment 4 retired 2021-04-01 20:21:56 UTC
Nope, I always had that problem with Plasma. When I close window from which I copied stuff it just isn't "selected" in clipboard and pasting will do nothing.

Please watch attachment video, it's in Polish but copy/paste button has icons.
Comment 5 Nate Graham 2021-04-01 22:48:39 UTC
I did watch the video, and I noticed that the Klipper icon is now visible in your System Tray, which is why I asked. Have you disabled it in the System Tray settings? Can you attach a screenshot of your System Tray's "Entries" page?
Comment 6 retired 2021-04-02 09:38:38 UTC
Contents of klipperrc file, I assume that version string tells me when it was created as I use plasma 5.21.3.

[General]
IgnoreImages=false
IgnoreSelection=true
KeepClipboardContents=false
PreventEmptyClipboard=false
Version=5.17.5

Klipper is set to "show when needed" in tray settings.
Comment 7 Nate Graham 2021-04-05 20:10:41 UTC
"Show when needed" means that it will appear when its history has at least one item in it, and it will disappear when empty. Are you seeing that, or some other behavior? What is your history size set to?
Comment 8 retired 2021-04-08 11:19:31 UTC
It does disappear when empty, which is what I want for less clutter and to know if I have anything stored.
History is set to seven and to drop contents at logoff.

Update.
I did some testing with new account, it seems to work there so I nuked my klipperrc.
It still didn't work, after setting klipper to "never remove contents" I seem to get  good results.

So I'm guessing it's a matter of PEBKAC or not nuking config files from time to time as I used to do during 4 to 5 transition which helped in a lot of cases.

This is an Arch install from 2017 mind you.


klipperrc after nuking and configuring:

[General]
IgnoreSelection=true

Thank you for your patience, now I need to get rid of that nasty habit of keeping windows open until stuff is pasted, even on Windows, grrrr.

I'll mark if as WORKSFORME as I'm not sure if it was my stupidity or something else.
Comment 9 Nate Graham 2021-04-08 16:01:50 UTC
No worries! It happens to us all. :)