Fixed stupid errors introduced by last attempt to fix broken

mouse behavior on multimonitor windows systems.  Those errors
broke synergy on all windows systems running as a server.
Also added an attempt to reduce the occasional jump that can
occur when switching screens when windows is the server.
This commit is contained in:
crs
2003-01-18 14:36:19 +00:00
parent 68a591210b
commit e86e552ac8
3 changed files with 25 additions and 3 deletions

View File

@@ -46,6 +46,9 @@ CArchSleepWindows::sleep(double timeout)
if (mt != NULL) {
HANDLE cancelEvent = mt->getCancelEventForCurrentThread();
WaitForSingleObject(cancelEvent, (DWORD)(1000.0 * timeout));
if (timeout == 0.0) {
Sleep(0);
}
}
else {
Sleep((DWORD)(1000.0 * timeout));