From 5c98a44603ad4fff730fa121c5e886fac8ff68b4 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 21 Nov 2015 21:54:42 +0100 Subject: [PATCH] Move Win32 clipboard code to helper window --- src/win32_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index 35e3a7d1..eb421bad 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1341,7 +1341,7 @@ void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) memcpy(GlobalLock(stringHandle), wideString, wideSize); GlobalUnlock(stringHandle); - if (!OpenClipboard(window->win32.handle)) + if (!OpenClipboard(_glfw.win32.helperWindow)) { GlobalFree(stringHandle); free(wideString); @@ -1361,7 +1361,7 @@ const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) { HANDLE stringHandle; - if (!OpenClipboard(window->win32.handle)) + if (!OpenClipboard(_glfw.win32.helperWindow)) { _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to open clipboard"); return NULL;