From 4eefafeae9190a73099d9e9cccd5c06b2ebf2f91 Mon Sep 17 00:00:00 2001
From: Akash Mozumdar <akashmozumdar@gmail.com>
Date: Wed, 13 Feb 2019 18:20:50 -0500
Subject: [PATCH] fix clipboard monitor

---
 GUI/host/util.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/GUI/host/util.cpp b/GUI/host/util.cpp
index ec142e4..330ca61 100644
--- a/GUI/host/util.cpp
+++ b/GUI/host/util.cpp
@@ -267,6 +267,7 @@ namespace Util
 
 	std::optional<std::wstring> GetClipboardText()
 	{
+		Sleep(10); // for some reason this function sometimes fails if I don't wait a little
 		if (!IsClipboardFormatAvailable(CF_UNICODETEXT)) return {};
 		if (!OpenClipboard(NULL)) return {};