From 879c5246587c84e8e2eb886f2856af197d182c97 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 13 Sep 2018 12:14:56 -0700 Subject: [PATCH] Revert "Process Qt events in the SDL loop" to fix input issues on Windows and Mac This reverts commit c8e00195ed4873f5b28f734330a076fcd6c8cc1c. --- app/streaming/session.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 914aa754..a6204650 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -908,13 +908,10 @@ void Session::exec(int displayOriginX, int displayOriginY) int currentDisplayIndex = SDL_GetWindowDisplayIndex(m_Window); - // Hijack this thread to be the SDL main thread, but also process - // Qt events in each iteration to allow us to use Qt classes. + // Hijack this thread to be the SDL main thread. We have to do this + // because we want to suspend all Qt processing until the stream is over. SDL_Event event; for (;;) { - // Process Qt events - QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents); - // We explicitly use SDL_PollEvent() and SDL_Delay() because // SDL_WaitEvent() has an internal SDL_Delay(10) inside which // blocks this thread too long for high polling rate mice and high