https://bugs.kde.org/show_bug.cgi?id=511063
Vlad Zahorodnii <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/kwin/-/commit/bb6e9d3ec1 |ma/kwin/-/commit/d4a8ef29e1 |f637d9af00b7f47962c84eb18b8 |f6ef7a0690900a7a335d6da1eb2 |17b |44b --- Comment #18 from Vlad Zahorodnii <[email protected]> --- Git commit d4a8ef29e1f6ef7a0690900a7a335d6da1eb244b by Vlad Zahorodnii. Committed on 28/10/2025 at 14:25. Pushed by vladz into branch 'Plasma/6.5'. xwayland: Update clipboard when active window changes Amends 947d2c5ad0746d807b04f6bb382e1d4ddb1b7f29. The clipboard was decoupled from active window changes in order to fix copy-pasting not working from X to Wayland clients. With that approach, if a wayland client sets new clipboard contents, kwin will update the CLIPBOARD selection immediately but also expect that clients won't access the selection until they are focused. WINE breaks that assumption. It wants to access the selection as soon as SelectionNotify events arrive, it doesn't access it later when user presses Ctrl-V in a focused window. This change restores focus tracking bits but with a few twists: first, xcb_selection_set_owner() to unset the owner is no longer nuclear, i.e. kwin won't overwrite selection owner if somebody already claimed it; second, the X source won't be nuked when we unset the Wayland proxy source object. (cherry picked from commit bb6e9d3ec1f637d9af00b7f47962c84eb18b817b) M +36 -3 src/xwayland/clipboard.cpp M +5 -5 src/xwayland/clipboard.h M +34 -3 src/xwayland/primary.cpp M +5 -5 src/xwayland/primary.h M +20 -8 src/xwayland/selection.cpp M +1 -0 src/xwayland/selection.h https://invent.kde.org/plasma/kwin/-/commit/d4a8ef29e1f6ef7a0690900a7a335d6da1eb244b -- You are receiving this mail because: You are watching all bug changes.
