Skip to content

wayland: Cancel selections if set whilst we don't have focus

David Edmundson requested to merge work/clipboard_dismiss into master

Otherwise we confused clients in the following situation:

Client A sets selection, but due to timing has lost focus User copies something in client B Client later tries to paste in client A.

Client A still thinks it owns the selection so does nothing.

CCBUG: 459389

Tested with keepassxc which clears the selection with a new clipboard 10s after copying during which the focus is probably lost. Pasting into keepassxc was then broken.

Merge request reports

Loading