Bug 378711 - [Wayland] Qt and Gtk applications have two different copy&paste stacks
Summary: [Wayland] Qt and Gtk applications have two different copy&paste stacks
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard (show other bugs)
Version: 5.22.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Martin Flöser
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2017-04-12 18:37 UTC by Germano Massullo
Modified: 2021-09-25 23:14 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Germano Massullo 2017-04-12 18:37:50 UTC
Qt and Gtk applications have two different copy & paste stacks.
During everyday computer usage, you happen to copy and paste various strings of text. Now for example let's assume that if I paste into Konsole, I will get "hello" text. And now let's paste into Firefox or another Gtk application: I will get "how are you" instead of "hello".

In Klipper (I don't remember if it is the correct name), I do not see "how are you" (the Gtk related paste)
Comment 1 Christoph Feck 2017-04-26 23:44:45 UTC
If I understand https://blog.martin-graesslin.com/blog/2016/07/synchronizing-the-x11-and-wayland-clipboard/ correctly, this is a known issue.
Comment 2 Germano Massullo 2018-12-05 15:47:15 UTC
Problem is no longer happening on 5.14.4
Comment 3 Germano Massullo 2019-02-15 13:54:27 UTC
Reopening the bugreport. I found a very particular use case.
1) I opened Dolphin, then Help->About Dolphin
2) I selected the line "KDE Framework 5.54.0" then right click, copy.
3) I tried to paste in Firefox, in a bugs.kde.org bugreport form, but Firefox did not paste anything.
4) Tried with pasting in a Qt application like Konversation: paste was successful.
5) Tried to paste into another Gtk application, so I opened Thunderbird. I cannot manage to paste the text.
Comment 4 Patrick Silva 2019-03-25 15:28:46 UTC
(In reply to Germano Massullo from comment #3)
> Reopening the bugreport. I found a very particular use case.
> 1) I opened Dolphin, then Help->About Dolphin
> 2) I selected the line "KDE Framework 5.54.0" then right click, copy.
> 3) I tried to paste in Firefox, in a bugs.kde.org bugreport form, but
> Firefox did not paste anything.
> 4) Tried with pasting in a Qt application like Konversation: paste was
> successful.
> 5) Tried to paste into another Gtk application, so I opened Thunderbird. I
> cannot manage to paste the text.

Already reported as bug 404822
Comment 5 Méven Car 2020-06-05 09:34:13 UTC
I believe it is reproducible with Spectacle copy to clipboard features.
Comment 6 Nicolas Fella 2021-05-22 12:40:34 UTC
FTR both Firefox and Thunderbird are likely running under XWayland so it's more likely that this is the culprit instead of them using GTK.

1) I opened Dolphin, then Help->About Dolphin
2) I selected the line "KDE Framework 5.54.0" then right click, copy.
3) I tried to paste in Firefox, in a bugs.kde.org bugreport form, but Firefox did not paste anything.
4) Tried with pasting in a Qt application like Konversation: paste was successful.
5) Tried to paste into another Gtk application, so I opened Thunderbird. I cannot manage to paste the text.

This works for me with current master. Do you still have the issue with the 5.22 beta?
Comment 7 Bug Janitor Service 2021-06-06 04:33:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2021-06-21 04:33:41 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 9 Germano Massullo 2021-08-20 10:35:51 UTC
I cannot copy paste from Firefox Wayland to Konsole

Plasma 5.22.4
KDE Frameworks 5.83.0
Qt 5.15.2
Fedora 34
Comment 10 Germano Massullo 2021-08-20 11:07:03 UTC
(In reply to Germano Massullo from comment #9)
> I cannot copy paste from Firefox Wayland to Konsole
> 
> Plasma 5.22.4
> KDE Frameworks 5.83.0
> Qt 5.15.2
> Fedora 34

I had to reboot the machine to temporarily fix it (terminating the session did not work since I got a black screen and I had to reboot from TTY)
Comment 11 Francisco Cribari 2021-09-08 19:25:37 UTC
I am having the same problem under Arch Linux + Wayland. See the details below. 

SUMMARY

Under Wayland, middle mouse copy-paste doesn't work between GTK and Qt applications. 


STEPS TO REPRODUCE
1. Start KDE Plasma under Wayland. 
2. Using a mouse (left button pressed), highlight some text in a GTK application, say, Google Chrome. 
3. Move the mouse to a Qt application (for instance, kedit or konsole) and middle-click. 

OBSERVED RESULT

The highlighted text in the GTK application is not copied into the Qt application. 


EXPECTED RESULT

The highlighted text in the GTK application should be copied into the Qt application.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.22.5-2
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Comment 12 David Edmundson 2021-09-25 23:14:15 UTC
Clipboard has changed significantly on 5.23. Please create a new report if you have issues there.