Bug 441783 - kde wayland klipper copies empty string instead of content
Summary: kde wayland klipper copies empty string instead of content
Status: RESOLVED DUPLICATE of bug 424754
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.22.5
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-30 20:20 UTC by Frieder
Modified: 2021-09-07 12:24 UTC (History)
3 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 Frieder 2021-08-30 20:20:07 UTC
SUMMARY

Similar to this on reddit: https://www.reddit.com/r/kde/comments/m6tys4/clipboard_very_inconsistent_on_kde_neon/

But I want to make sure this is here on the list. I'm fairly new here so please tell me where I should put it

STEPS TO REPRODUCE
0. Use wayland
1. Select text (somewhere)
2. ctrl + c (copy shortcut)
3. check clipboard
(every second or third copy is an empty string or not copying at all)

OBSERVED RESULT
- copied line is empy (or additional empty one is copied)

EXPECTED RESULT
- copied selected text


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.13.11-1
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.12.2
Graphics Platform: Wayland

ADDITIONAL INFORMATION
- Personal note:
This is a major issue for me since wayland has major benefits for me when playing games. Some games don't get proper input under x11 but wayland works like a charm.
Comment 1 Frieder 2021-08-30 20:21:32 UTC
I've added it here since the issue is fairly old but critical to the adoption of wayland (imho)
Comment 2 David Redondo 2021-08-31 09:11:17 UTC
Does this happen when copying from 
- Plasma
- normal windows
- XWayland windows
?
Comment 3 Frieder 2021-09-05 17:19:18 UTC
I used the KWin Debug console to test which windows use x11 (x11 client windows)

X11 Client windows:
- Firefox (issue found)
- Signal desktop app (issue found)
- Jetbrains Rider (issue found)

XWayland Observed behavior:
- Copies most of the times 1 entry for the line + one empty entry
- Copies sometimes only an empty entry

------

Wayland:
- Kate (no issues, and also no empty line)
- Dolphin (Copying the path the the current dir) (No issues)

-------

Conclusion:
- There seems to be something strange going on when using KWayland (unfortunately used by a lot of applications)
Comment 4 Frieder 2021-09-05 20:10:02 UTC
additionally I've tried firefox without XWayland 

> export MOZ_ENABLE_WAYLAND=1
> firefox


-> no issues
Comment 5 Patrick Silva 2021-09-07 12:24:56 UTC

*** This bug has been marked as a duplicate of bug 424754 ***