From badb7f1e8b89f4c66fa16c49f958f265c0f4cd77 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 6 Jul 2023 08:36:49 -0700
Subject: [PATCH] Added notes about delayed clipboard rendering on Windows
---
src/video/windows/SDL_windowsclipboard.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/video/windows/SDL_windowsclipboard.c b/src/video/windows/SDL_windowsclipboard.c
index 25b0052abcf5..fabb3d6b3c9d 100644
--- a/src/video/windows/SDL_windowsclipboard.c
+++ b/src/video/windows/SDL_windowsclipboard.c
@@ -220,6 +220,11 @@ int WIN_SetClipboardData(SDL_VideoDevice *_this)
size_t i;
int result = 0;
+ /* I investigated delayed clipboard rendering, and at least with text and image
+ * formats you have to use an output window, not SDL_HelperWindow, and the system
+ * requests them being rendered immediately, so there isn't any benefit.
+ */
+
if (WIN_OpenClipboard(_this)) {
EmptyClipboard();