Summary: | XWayland application somtimes failed to write clipboard with focus changed | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | tsic <tsicliu> |
Component: | xwayland | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 4wy78uwh, kde, nate |
Priority: | HI | Keywords: | wayland-only |
Version First Reported In: | 6.4.80 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/3976a8c08695ad0f3c1d10b410b44a72599dddae | Version Fixed In: | 6.5.0 |
Sentry Crash Report: | |||
Attachments: | demo and clipboard selection monitor |
Description
tsic
2025-08-08 03:13:02 UTC
In progress with https://invent.kde.org/plasma/kwin/-/merge_requests/7990 Git commit 3976a8c08695ad0f3c1d10b410b44a72599dddae by Vlad Zahorodnii. Committed on 06/10/2025 at 13:25. Pushed by vladz into branch 'Plasma/6.5'. xwayland: Decouple selection sync'ing from focus changes The current selection should be unaffected by the active window. For example, if a client sets a selection and then active window changes, that selection should still remain set. The current selection should only change when it's set explicitly (either by an X or a Wayland client). Regarding snooping clipboard contents, our SelectionRequest handler has a guard to protect us against that case. (cherry picked from commit 947d2c5ad0746d807b04f6bb382e1d4ddb1b7f29) M +9 -51 src/xwayland/clipboard.cpp M +0 -6 src/xwayland/clipboard.h M +8 -49 src/xwayland/primary.cpp M +0 -6 src/xwayland/primary.h https://invent.kde.org/plasma/kwin/-/commit/3976a8c08695ad0f3c1d10b410b44a72599dddae |