https://bugs.kde.org/show_bug.cgi?id=506325
Vlad Zahorodnii <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/plasma-workspace/-/commi |ma/kwin/-/commit/d9de57d2bd |t/d2c4401e8afba1c7478c82626 |a68e6964a904ca7454946515de5 |5e5efb7f0ae2a85 |435 Resolution|--- |FIXED --- Comment #37 from Vlad Zahorodnii <[email protected]> --- Git commit d9de57d2bda68e6964a904ca7454946515de5435 by Vlad Zahorodnii, on behalf of Tomáš Hnyk. Committed on 09/09/2026 at 13:44. Pushed by vladz into branch 'master'. wayland: Only allow replacing a destroyed primary or clipboard selection GTK applications drop the selection when the user clicks away: https://gitlab.gnome.org/GNOME/gtk/-/work_items/317 x-kde-onlyReplaceEmpty is meant to be used by klipper only when an application closes, as that allows klipper to preserve clipboard/selection content. So use the replacement only when the connection to the application closes. This has to be done on kwin side, as kwin knows this and klipper does not. Note that this works only for Wayland. On Xwayland, the client this commit looks up is always null, so gating does not work and klipper (or any other user of x-kde-onlyReplaceEmpty) is left with the previous check, which allows it to only replace clipboard or selection buffers that nobody owns. M +9 -10 src/wayland/seat.cpp M +2 -0 src/wayland/seat_p.h https://invent.kde.org/plasma/kwin/-/commit/d9de57d2bda68e6964a904ca7454946515de5435 -- You are receiving this mail because: You are watching all bug changes.
