Skip to content

Commit

Permalink
Additional exclusion fields for Windows Clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey authored and pull[bot] committed Jan 26, 2025
1 parent f6412b7 commit 8ccaa7b
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 8ccaa7b

Please sign in to comment.