Bug 436246 - Mouse selection clipboard (PRIMARY) works on Wayland, but klipper wont capture it
Summary: Mouse selection clipboard (PRIMARY) works on Wayland, but klipper wont captur...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard (show other bugs)
Version: 5.21.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland
: 434504 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-04-26 22:39 UTC by Henrique Sant'Anna
Modified: 2021-09-07 13:59 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23
Sentry Crash Report:
hsantanna: Wayland+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***