Comment 1 for bug 1995826

Revision history for this message
Oliver Sauder (sao) wrote :

Thanks for your report.

I have also checked the xfce4-clipman code how they simulate paste and they do it the same as in Diodon using the XTest library. There is a delay there before instant pasting (your first point) as pasting does not work under some circumstances when the paste executes too fast.

I briefly want to explain how the instant paste works and that might make the situation a bit clearer. So Diodon uses XTest so simulate pressing of Ctrl+V. It is like if just after you selected an item in the history you would straight away press Ctrl+V on your keyboard. It is not possible to simulate key presses to a certain window so it will simply be pasted to the window which has the focus.

Why it might have worked in xfce4-clipman is that they use a different delay. Thing is, though, if the delay in diodon is adjusted it might not work in other setups which have worked previously.

Also, Xorg is less and less relevant and in Wayland “Instant Paste” simply does not work anymore, as there is no such functionality to simulate key presses in a window not belonging to Diodon for security restrictions.

This said, I see three ways forward:

1. You disable automatically paste selected item in the Diodon preferences
2. You disable “focus-follows-mouse” option in XFCE
3. You try to play around the delay in https://github.com/diodon-dev/diodon/blob/589c190b5e616677585493a31c5fe115c0a17430/libdiodon/controller.vala#L296 How to build Diodon you can find in the README.md. If you find a delay which works in your setup, let me know.