Primary selection clipboard is unreliable
sway version v1.5)
Distro: Arch Linux
foot version 1.4.4-246-g32639e4 (Aug 27 2020, branch 'master')
Sometimes pasting from primary selection clipboard doesn't work, sometimes it works. It's easy to reproduce:
- select text in any external wayland-native program (like Firefox)
- quickly press middle mouse button 20 times without any delay
- you can notice that it stopped pasting, starting with the ≈third time.
I did the same test in others wayland-native programs (telegram-desktop, kitty, firefox) and there was no problem with them.
EDIT: I've noticed that pasting works flawlessly when you use keyboard hotkey (e.g. if you bind "primary-paste" to Shift+Insert), so the problem should be in the mouse interaction code part.
I think what's happening here is that you're clicking "too fast", making foot count the click as a double- or triple- (or more) click.
What other programs appear to do is fire the "single-click" action on double- and triple clicks if there aren't any actions associated with the multi-click variants. Which makes sense I guess.
Version: foot version 1.4.4-246-g32639e4 (Aug 27 2020, branch 'master')
Thank you, I built and tested it, now it works as I expected!
Thanks for testing this so quickly! It's now merged and done :)
Deleting a branch is permanent. It CANNOT be undone. Continue?