https://bugs.kde.org/show_bug.cgi?id=511063
Vlad Zahorodnii <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Latest Commit| |https://invent.kde.org/plas | |ma/kwin/-/commit/bb6e9d3ec1 | |f637d9af00b7f47962c84eb18b8 | |17b --- Comment #16 from Vlad Zahorodnii <[email protected]> --- Git commit bb6e9d3ec1f637d9af00b7f47962c84eb18b817b by Vlad Zahorodnii. Committed on 28/10/2025 at 11:45. Pushed by vladz into branch 'master'. 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. 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/bb6e9d3ec1f637d9af00b7f47962c84eb18b817b -- You are receiving this mail because: You are watching all bug changes.
