Skip to content

Commit

Permalink
Fix copy/paste. 'Windows' and 'Compromise' now works. xterm won't.
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyoyo committed Feb 4, 2022
1 parent 44aefce commit 89ac076
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions windows/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 89ac076

Please sign in to comment.