Skip to content

Fix Klipper empty prevention on wayland

Manual cherry-pick of !2908 (merged) because it didn't cherry-pick cleanly to make sure it doesn't break tests or whatevs


When an application terminates, we receive a signal for the Selection and restore it. While restoring it, we also receive a signal for the Clipboard, but don't handle it since we're currently locked due to the Selection.

This patch fixes that by creating separate locks for Selection and Clipboard.

BUG: 468422 (cherry picked from commit c6d52910)

Merge request reports