"Write a message" stays in message input
Lags cause bad behaviour in conjunction with pasting things. This happens all the time when using ssh -X on a high latency connection, and my chat partners complain about broken links.
Seeing how this is basically a race condition, this could happen on a highly loaded system too.
- OS: Fedora 32
- Gajim version: master
- GTK version: gtk3-3.24.27-1.fc32.x86_64
- Python-nbxmpp version: master
Steps to reproduce the problem
- Open chat window
- Focus text input (must be empty)
- Paste something into it + Have a good lag
- Switch away from chat window
- Focus chat window again
Lag can be induced this way:
- Focus text input
pkill -STOP gajim
- Paste something
- Unfocus window
pkill -CONT gajim
- Effect visible now.
Only pasted text appears in text window once lag is over
Pasted text appears next to prompt:
The most obvious solution seems to be having the prompt inside a separate buffer than the text input contents. Failing this, maybe pasting into the text input should be special cased to remove the prompt?