The comment describes using the same service,
"com.sun.star.datatransfer.clipboard.SystemClipboard",
for both, primary selection and clipboard as a hack.
Replace that and no longer get primary selection via
the UNO service indirecation at all, but call
SalInstance::CreateClipboard with the
ClipboardSelectionType::Primary param instead.
See vcl_SystemClipboard_get_implementation for
where the param is evaluated and commit
Change-Id: If913d7514fe7d5bcea34430928ec2ec3d98774b6
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Fri Feb 27 14:30:47 2026 +0100
vcl: Centralize evaluating Sequence<Any> args for clipboard creation
for more background on the now newly used approach
allowing to pass an enum for the selection/clipboard
type to SalInstance::CreateClipboard.
The extra logic in vcl_SystemClipboard_get_implementation
should be unnecessary now at least for LO-internal logic.
While it shouldn't, at least in theory, third-party code
(macros/extensions) could be depending on this implementation
detail, so play it safe and leave it in place for now.
Change-Id: I28f83f22a5826484327b91bcfd5a4c6650dc72de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200647
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>