Skip to content

Commit

Permalink
Additional exclusion fields for Windows Clipboard
Browse files Browse the repository at this point in the history
* Fixes #7127
  • Loading branch information
droidmonkey committed Dec 24, 2024
1 parent 5e61db6 commit d604723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/Clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ void Clipboard::setText(const QString& text, bool clear)
mime->setData("x-kde-passwordManagerHint", QByteArrayLiteral("secret"));
#elif defined(Q_OS_WIN)
mime->setData("ExcludeClipboardContentFromMonitorProcessing", QByteArrayLiteral("1"));
mime->setData("CanIncludeInClipboardHistory", {4, '\0'});
mime->setData("CanUploadToCloudClipboard ", {4, '\0'});
#endif

if (clipboard->supportsSelection()) {
Expand Down

0 comments on commit d604723

Please sign in to comment.