From a324957e2da7822e08e754eea62279d924e97dad Mon Sep 17 00:00:00 2001 From: Jamie Newbon Date: Mon, 4 May 2020 13:46:21 +0100 Subject: [PATCH] #6487 Changed timeout multiplier We belive that there was a bug in the polling function that caused it to return straight away instead of actually waiting for the timeout. --- src/lib/platform/XWindowsEventQueueBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/platform/XWindowsEventQueueBuffer.cpp b/src/lib/platform/XWindowsEventQueueBuffer.cpp index 71e2cfba8c..079dd50bc3 100644 --- a/src/lib/platform/XWindowsEventQueueBuffer.cpp +++ b/src/lib/platform/XWindowsEventQueueBuffer.cpp @@ -120,7 +120,7 @@ XWindowsEventQueueBuffer::waitForEvent(double dtimeout) pfds[1].fd = m_pipefd[0]; pfds[1].events = POLLIN; int timeout = (dtimeout < 0.0) ? -1 : - static_cast(1000.0 * dtimeout); + static_cast(dtimeout); int remaining = timeout; int retval = 0; #else