Fix clipboard history support in v0.20
This commit is contained in:
1 parent
ceb0b5552e
commit
784be4eb67
8 files changed
+278
-25
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include "config.hpp"
|
||||
#include <windows.h>
|
||||
#include <vector>
|
||||
|
||||
namespace clipboard_history {
|
||||
|
||||
// Publishes an encoded bitmap stream through Windows.ApplicationModel.DataTransfer
|
||||
// so Windows 10/11 clipboard history can ingest it. This intentionally happens
|
||||
// before the richer Win32 clipboard payload is installed.
|
||||
[[nodiscard]] bool publishBitmap(const std::vector<BYTE>& encodedBitmap,
|
||||
DWORD settleMilliseconds = 450);
|
||||
|
||||
} // namespace clipboard_history
|
||||
Reference in new issue
Block a user