wayland: Cancel selections if set without focus
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.
(cherry picked from commit 46cad20e)