https://bugs.kde.org/show_bug.cgi?id=469644

Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/kwin/-/commit/6943fab2c1
                   |t/cf41b532579cb010fac218e18 |c46eb15e0018ae3419c0d43eb3c
                   |6cf3df8968f6bbf             |8d7

--- Comment #14 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 6943fab2c1c46eb15e0018ae3419c0d43eb3c8d7 by Vlad Zahorodnii, on
behalf of David Edmundson.
Committed on 23/07/2024 at 12:50.
Pushed by vladz into branch 'master'.

wayland: Avoid klipper loop with existing but empty clipboards

In default settings if the clipboard or selection is empty klipper will try to
replace it with cached data.

To avoid an occurring race condition if a client deletes and then recreates a
selection kwin will deny klipper if another mimedata is present at the time
it tried to replace an empty clipboard.

Klipper also considers the presence of a valid mime data without any offers
to be an empty clipboard, whereas kwin did not.

If a super weird client set the clipboard to a valid entry with no offers,
klipper would get into an infinite loop of trying to set it's own selection
for it to be continually denied with no other valid offer from klipper's
perspective
ever received.

M  +4    -3    src/wayland/seat.cpp

https://invent.kde.org/plasma/kwin/-/commit/6943fab2c1c46eb15e0018ae3419c0d43eb3c8d7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to