Bug 439070 - Unable to copy/paste when using Wayland
Summary: Unable to copy/paste when using Wayland
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.22.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-23 13:18 UTC by Gilberto Ferreira
Modified: 2021-08-03 21:57 UTC (History)
4 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 Gilberto Ferreira 2021-06-23 13:18:52 UTC
SUMMARY

After upgrade Kubuntu hirsute, I am unable to copy/paste imagens, specially inside Google Chrome.
In x11 works fine.

STEPS TO REPRODUCE
1. Log in into KDE Plasma 5.22.2 using wayland
2. Use spectable or flameshot to copy image to the klipper
3. Then try to paste it to the Facebook post or Twitter and not work at all.

OBSERVED RESULT

No copy/paste works

EXPECTED RESULT

Copy/paste to works properly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu Hirsute
(available in About System)
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Operating System: Kubuntu 21.04
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.12-051212-lowlatency (64-bit)
Graphics Platform: X11
Processors: 4 × AMD A12-9720P RADEON R7, 12 COMPUTE CORES 4C+8G
Memory: 15.2 GiB of RAM
Graphics Processor: AMD Radeon R7 Graphics

cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-5.12.12-051212-lowlatency root=UUID=f0f36d98-03f0-46e0-9113-b323e6b87c24 ro quiet splash apparmor=0 radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1 kvm-amd.nested=1 vt.handoff=7

cat /usr/share/X11/xorg.conf.d/10-amdgpu.conf 
Section "OutputClass"
        Identifier "AMDgpu"
        MatchDriver "amdgpu"
        Driver "amdgpu"
        Option "TearFree" "on"
        Option "DRI" "3"
        Option "AccelMethod" "glamor"
EndSection

cat /usr/share/X11/xorg.conf.d/10-radeon.conf 
Section "OutputClass"
        Identifier "Radeon"
        MatchDriver "radeon"
        Driver "radeon"
        Option "TearFree" "on"
        Option "DRI" "3"
        Option "AccelMethod" "glamor"
EndSection
Comment 1 David Edmundson 2021-06-23 13:24:37 UTC
>3. Then try to paste it to the Facebook post or Twitter and not work at all.

Can you confirm which browser and whether that browser is running X or wayland
Comment 2 Gilberto Ferreira 2021-06-23 13:40:40 UTC
(In reply to David Edmundson from comment #1)
> >3. Then try to paste it to the Facebook post or Twitter and not work at all.
> 
> Can you confirm which browser and whether that browser is running X or
> wayland

Sure! I try it in Google Chrome only. Doesn't have firefox.
But the behavior was observed in other applications like from spactable to Libreoffice or Krita as well.
Comment 3 Gilberto Ferreira 2021-06-23 13:51:40 UTC
Interesting enough, in KolourPaint works perfect!
Comment 4 Gilberto Ferreira 2021-06-23 13:55:35 UTC
Another issues is that sometime the shortcut control+c and control+v appears doesn´t work. Sometimes doesn't works.
Comment 5 David Edmundson 2021-06-23 14:03:55 UTC
So it's just copying to xwayland clients from the list there.
Comment 6 Gilberto Ferreira 2021-06-23 14:33:47 UTC
(In reply to David Edmundson from comment #5)
> So it's just copying to xwayland clients from the list there.

Sorry, but I not sure I following.
Comment 7 Alois Wohlschlager 2021-07-06 08:35:40 UTC
> So it's just copying to xwayland clients from the list there.

Krita runs on XWayland as well as far as I know and the reporter has indicated that pasting into Krita does not work either.

Based on my own testing, it seems to me that pasting into Wayland clients never works, while pasting to XWayland client sometimes works and sometimes not.
Comment 8 Vlad Zahorodnii 2021-07-07 12:35:00 UTC
*** Bug 439513 has been marked as a duplicate of this bug. ***
Comment 9 Anton Kreuzkamp 2021-07-07 13:59:00 UTC
I can confirm this issue. Here, copying from spectacle into the clipboard works fine (as shown by Klipper), pasting fails for Chrome (XWayland), Krita (XWayland). Pasting does work for Firefox (XWayland), Dophin (XWayland), Dolphin (wayland native).

It makes no difference whether Plasmashell/Klipper is running or not.

Copy and pasting from Firefox (XWayland) or Chrome (XWayland) into Chrome (XWayland) or Krita (XWayland) works fine.
Comment 10 Anton Kreuzkamp 2021-07-07 14:08:56 UTC
Note the related issue #439513 Copying images (and text) from Chrome (XWayland) to Dolphin (Wayland native) works when Klipper is not running but fails sometimes when Klipper is running (at least on my machine).

The issue mentioned here (copy and pasting from wayland-native to Chrome/Krita) happens independently of Klipper.
Comment 11 Gilberto Ferreira 2021-07-07 14:17:09 UTC
(In reply to Anton Kreuzkamp from comment #10)
> Note the related issue #439513 Copying images (and text) from Chrome
> (XWayland) to Dolphin (Wayland native) works when Klipper is not running but
> fails sometimes when Klipper is running (at least on my machine).
> 
> The issue mentioned here (copy and pasting from wayland-native to
> Chrome/Krita) happens independently of Klipper.

Here, after upgrade to 5.22.3 everything is works fine. *Kubuntu Hirsute*
Comment 12 Anton Kreuzkamp 2021-07-07 22:24:59 UTC
After update to 5.22.3 pasting images into krita (xwayland) works fine, pasting into Chrome (91.0, XWayland) still fails.
Comment 13 Bug Janitor Service 2021-07-22 04:33:25 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!