From 89ac07686560978159bee88894f1ebe6aae28aa2 Mon Sep 17 00:00:00 2001 From: Toyoyo Toyo Date: Fri, 4 Feb 2022 16:38:43 +0100 Subject: [PATCH] Fix copy/paste. 'Windows' and 'Compromise' now works. xterm won't. --- windows/window.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/windows/window.c b/windows/window.c index e7a2bbd..18f64e9 100644 --- a/windows/window.c +++ b/windows/window.c @@ -5280,11 +5280,8 @@ static void wintw_clip_request_paste(TermWin *tw, int clipboard) * message back to our main window when it terminates, and * that tells us it's OK to paste. */ - DWORD in_threadid; /* required for Win9x */ - HANDLE hThread = CreateThread(NULL, 0, clipboard_read_threadfunc, - wgs.term_hwnd, 0, &in_threadid); - if (hThread) - CloseHandle(hThread); /* we don't need the thread handle */ + // CreateThread() doesn't do anything on win32s + clipboard_read_threadfunc(wgs.term_hwnd); } /*