Bug 436246

Summary: Mouse selection clipboard (PRIMARY) works on Wayland, but klipper wont capture it
Product: [Plasma] plasmashell Reporter: Henrique Sant'Anna <hsantanna>
Component: ClipboardAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alex765, bernie, dschridde+kde, floflobel, goeran, herzenschein, kde, matt, miku84, nate, oded, theivorytower
Priority: NOR Keywords: wayland
Version: 5.21.5Flags: hsantanna: Wayland+
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=422426
Latest Commit: Version Fixed In: 5.23

Description Henrique Sant'Anna 2021-04-26 22:39:03 UTC
SUMMARY

GTK 3.24.29 received a path that made PRIMARY work between QT/KDE apps on Wayland.
So we can mouse select text from (e.g.) Firefox and than paste it by middle clicking to (e.g.) Konsole.

But right now this text is not captured by klipper (5.21.4).

Klipper will not capture PRIMARY (mouse selection), no matter if from GTK apps or KDE / QT apps.


STEPS TO REPRODUCE

1. Start KDE Plasma (Wayland session) and start Klipper
2. Open any app (like a GTK app or a KDE/QT app);
3. Select text with mouse cursor;
4. Open another app;
5. Use middle click to paste the text previously selected, from the first app to the second one;
6. Check Klipper, the selected (and pasted) text was not captured by Klipper.


OBSERVED RESULT

Klipper will not capture text from mouse selection on Wayland, even when mouse selection clipboard is working good (we can select to copy and middle click to paste).


EXPECTED RESULT

Klipper should capture from mouse selection on Wayland.


SOFTWARE/OS VERSIONS

Platform: Linux (Arch Linux)
QT: 5.15.2+kde+r180-1
Desktop: KDE Plasma 5.21.4 (Wayland)


ADDITIONAL INFORMATION

Tested with:
QT_QPA_PLATFORM=wayland klipper
Comment 1 Nate Graham 2021-04-27 15:14:44 UTC
*** Bug 434504 has been marked as a duplicate of this bug. ***