Copy selection to clipboard automatically

Is it possible to configure the LibreOffice Writer to copy the selection to clipboard automatically in Ubuntu/Linux? Copying the selection and pasting it with middle mouse button is the default behaviour in Ubuntu environment. But with my LibreOffice Writer configuration only the paste part works. Selecting in LibreOffice Writer clears the clipboard, unless I explicitly copy it.

Use a clipboard manager.’