https://bugs.kde.org/show_bug.cgi?id=507792

--- Comment #25 from Anders Wenhaug <[email protected]> ---
I've done some more debugging, specifically with KDEs debug console (qdbus
org.kde.KWin /KWin showDebugConsole):

What seems to happen is:

Buggy path:
1. Spectacle sets the clipboard contents
1.1. Clipboard shows "data control by /usr/bin/spectacle"
2. ~0.3s passes since screenshot
3. Klipper (plasmashell) takes over the clipboard contents to prevent it from
being wiped when spectacle closes
3.1. Clipboard shows "data control by /usr/bin/plasmashell"
4. Clipboard is wiped upon changing to an empty virtual desktop

Non-buggy path:
1. Spectacle sets the clipboard contents
1.1. Clipboard shows "data control by /usr/bin/spectacle"
2. Switch virtual desktop
3. ~0.3s passes since screenshot
4. Klipper (plasmashell) takes over the clipboard contents to prevent it from
being wiped when spectacle closes
4.1. Clipboard shows "data control by wl_data_source@<x> of
/usr/bin/plasmashell"
5. Clipboard is *not* wiped upon changing virtual desktops

Note the difference in 3.1 and 4.1 ("data control by /usr/bin/plasmashell" vs
"data control by wl_data_source@<x> of /usr/bin/plasmashell").

I assume when the "~0.3s" has passed is when Spectacle exits, triggering
Klipper to take over the clipboard contents, and that how Klipper does that
somehow depends on whether the virtual desktop has changed or not.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to