Additional exclusion fields for Windows Clipboard

* Fixes #7127
This commit is contained in:
Jonathan White 2024-12-01 23:57:11 -05:00
parent 5e61db630c
commit d60472328f

View File

@ -60,6 +60,8 @@ void Clipboard::setText(const QString& text, bool clear)
mime->setData("x-kde-passwordManagerHint", QByteArrayLiteral("secret")); mime->setData("x-kde-passwordManagerHint", QByteArrayLiteral("secret"));
#elif defined(Q_OS_WIN) #elif defined(Q_OS_WIN)
mime->setData("ExcludeClipboardContentFromMonitorProcessing", QByteArrayLiteral("1")); mime->setData("ExcludeClipboardContentFromMonitorProcessing", QByteArrayLiteral("1"));
mime->setData("CanIncludeInClipboardHistory", {4, '\0'});
mime->setData("CanUploadToCloudClipboard ", {4, '\0'});
#endif #endif
if (clipboard->supportsSelection()) { if (clipboard->supportsSelection()) {