mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-23 23:51:30 +00:00
[idd] clipboard: add direct synchronization
This commit is contained in:
@@ -136,6 +136,11 @@ int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _
|
||||
|
||||
CNotifyWindow& window = CNotifyWindow::instance();
|
||||
|
||||
if (!window.initClipboard(g_pipe.Clipboard()))
|
||||
DEBUG_ERROR("Failed to initialize clipboard synchronization");
|
||||
else
|
||||
g_pipe.EnableClipboard();
|
||||
|
||||
// the pipe must be initialized after the CNotifyWindow
|
||||
// has been created to avoid a potential race
|
||||
if (!g_pipe.Init())
|
||||
|
||||
Reference in New Issue
Block a user