gbprod / yanky.nvim

Improved Yank and Put functionalities for Neovim
Do What The F*ck You Want To Public License
802 stars 22 forks source link

fix: prevent focus lost/gained loop on linux/wayland. Fixes #182 #183

Closed folke closed 1 month ago

folke commented 1 month ago

The same logic that was initially only applied on focus gained, now also needs to be applied on focus lost.

https://github.com/LazyVim/LazyVim/issues/3321

Fixes #182

gbprod commented 1 month ago

Seems legit I'll do some tests tomorrow and I'll merge if it's ok! Thanks a lot !

folke commented 1 month ago

This is the real underlying issue fyi: https://github.com/bugaevc/wl-clipboard/issues/12 Won't be fixed unfortunately.

folke commented 1 month ago

I fixed it at the level of fetching from the clipboard. Even better this way.

gbprod commented 1 month ago

Thank you ! I can't manage to reproduce this issue so you contribution is very welcome !

folke commented 1 month ago

Thanks for merging!