Add a timeout to the clipboard code to avoid hangs when using synergy. When a timeout is detected we set the clipboard so that we own it so that future timeouts are avoided. Testing has confirmed that this timeout and setting only occurs when the clipboard contains text from my Windows machine.

That is, if you copy from the Windows clipboard and then launch Dota and then repeatedly paste to a terminal window then the text will disappear when Dota hits the timeout. If you then select on the Linux side you can repeatedly paste. If you select again on Windows then the text will get cleared again.

Note that Dota only looks at the clipboard when it has focus.

CR: Saml
This commit is contained in:
Sam Lantinga 2013-07-23 12:59:29 -07:00
parent 08e8f26d62
commit defb16763d
2 changed files with 18 additions and 2 deletions

0
src/thread/windows/SDL_systhread.c Executable file → Normal file
View file